/* ===================================================================
   Mundo Venticlima — Design system
   Palette extraite du logo : navy #222A5A · bleu #2877B7
   Type: Space Grotesk (display) + Inter (body)
   Signature: scene 3D (Three.js) representant le flux d'air / turbine
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #F7F9FC;
  --paper-dim: #EEF2F8;
  --navy: #1B2140;
  --navy-2: #222A5A;
  --ink-soft: #566079;
  --blue: #2877B7;
  --blue-dark: #1B5A8F;
  --blue-light: #5CA3DA;
  --sky: #EAF3FB;
  --line: #DCE6F0;
  --white: #FFFFFF;
  --danger: #C24A3D;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(27, 33, 64, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--navy-2);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: white; box-shadow: 0 6px 20px rgba(40,119,183,0.35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(40,119,183,0.45); }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-outline.light { border-color: rgba(255,255,255,0.6); color: white; }
.btn-outline.light:hover { background: white; color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  flex-shrink: 0;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 6px; font-size: 0.82rem; font-weight: 600; }
.lang-switch a {
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--ink-soft);
}
.lang-switch a.active { background: var(--blue); color: white; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); padding: 4px 8px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--line);
    display: none; gap: 16px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-right .btn-primary { display: none; }
  .nav-logo span { display: none; }
}
@media (max-width: 480px) {
  .lang-switch { gap: 3px; }
  .lang-switch a { padding: 4px 7px; }
}

/* ---------- Hero with 3D signature ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #232C5C 55%, var(--blue-dark) 100%);
  color: white;
  padding: 70px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
}
.hero h1 { color: white; }
.hero p.lead { color: #C7D3EA; font-size: 1.1rem; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
}
.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: pan-y;
}
.hero-3d-fallback {
  width: 100%;
  height: 100%;
  animation: dial-in 1s ease-out;
}
@keyframes dial-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-3d { max-width: 300px; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-3d canvas { display: none; }
  .hero-3d-fallback { display: block !important; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 620px; margin: 0 0 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(27,33,64,0.14); }
.card-image { aspect-ratio: 4/3; background: var(--paper-dim); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.95rem; margin-bottom: 12px; }
.price-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.1rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: white;
  color: var(--navy-2);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info-item .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sky);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.map-embed { margin-top: 28px; }
.map-embed iframe { width: 100%; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #B7C1DA; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: white; font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--blue-light); }
.footer-logo { height: 30px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-credit a { color: var(--blue-light); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ---------- Blog ---------- */
.blog-post-content { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.blog-post-content img { border-radius: var(--radius); margin: 24px 0; }
.blog-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 20px; }

/* ---------- Empty states ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Bouton WhatsApp flottant (effet 3D) ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #6FE07E 0%, #25D366 40%, #1DA851 78%, #158A42 100%);
  box-shadow:
    0 10px 22px rgba(20, 100, 55, 0.45),
    0 2px 4px rgba(0,0,0,0.2),
    inset 0 2px 3px rgba(255,255,255,0.55),
    inset 0 -4px 6px rgba(0,60,25,0.35);
  animation: wa-float 3s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow:
    0 14px 28px rgba(20, 100, 55, 0.5),
    inset 0 2px 3px rgba(255,255,255,0.6),
    inset 0 -4px 6px rgba(0,60,25,0.35);
}
.whatsapp-float svg { position: relative; z-index: 2; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25)); }

.whatsapp-float-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes wa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.whatsapp-float:hover { animation-play-state: paused; }

.whatsapp-float-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, right 0.2s ease;
  box-shadow: var(--shadow);
}
.whatsapp-float-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--navy);
}
.whatsapp-float:hover .whatsapp-float-tooltip { opacity: 1; right: 76px; }

@media (max-width: 640px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .whatsapp-float-tooltip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-float-ring { animation: none; }
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
