/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0B1D3A;
  --navy-light: #132B52;
  --navy-mid: #1A3A6B;
  --blue-accent: #2563EB;
  --orange: #F47B20;
  --orange-hover: #E06A10;
  --orange-glow: rgba(244, 123, 32, 0.25);
  --white: #FFFFFF;
  --off-white: #F4F6FA;
  --gray-100: #E8ECF2;
  --gray-300: #B0B8C9;
  --gray-500: #6B7A94;
  --gray-700: #3D4E68;
  --gold: #F5B731;
  --green: #22C55E;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(11,29,58,0.12);
  --shadow-lg: 0 12px 48px rgba(11,29,58,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== UTILITY ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 16px 32px; border-radius: 60px; border: none; cursor: pointer;
  text-decoration: none; transition: all 0.3s cubic-bezier(.4,0,.2,1);
  letter-spacing: 0.02em; position: relative; overflow: hidden;
}
.btn-orange {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 20px var(--orange-glow);
}
.btn-orange:hover {
  background: var(--orange-hover); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(244,123,32,0.4);
}
.btn-white {
  background: var(--white); color: var(--navy);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  background: var(--off-white); transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-whatsapp {
  background: #25D366; color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #1EBE5A; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}
.btn svg { flex-shrink: 0; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--navy);
  color: var(--gray-300);
  font-size: 0.85rem;
  padding: 10px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar-left { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.pulse-dot {
  width: 8px; height: 8px; background: var(--green); border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ===== HEADER / NAV ===== */
header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--gray-100);
  padding: 12px 0;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 44px; height: 44px; background: var(--navy);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.logo-icon::after {
  content: '⚡'; font-size: 22px; filter: drop-shadow(0 0 4px var(--orange));
}
.logo-text { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.logo-sub { font-size: 0.7rem; color: var(--gray-500); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

.header-phone {
  display: flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--white);
  padding: 10px 22px; border-radius: 60px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 16px var(--orange-glow);
  transition: all 0.3s ease;
}
.header-phone:hover { background: var(--orange-hover); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-bottom: 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(244,123,32,0.08) 0%, transparent 60%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(11,29,58,0.92) 0%, rgba(19,43,82,0.80) 40%, rgba(26,58,107,0.65) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  background-size: cover;
}
.hero-visual {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 55%; height: 80%; z-index: 1; opacity: 0.12;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 600"><circle cx="250" cy="300" r="200" fill="none" stroke="white" stroke-width="0.5"/><circle cx="250" cy="300" r="150" fill="none" stroke="white" stroke-width="0.3"/><circle cx="250" cy="300" r="100" fill="none" stroke="white" stroke-width="0.5"/><line x1="250" y1="100" x2="250" y2="500" stroke="white" stroke-width="0.3"/><line x1="50" y1="300" x2="450" y2="300" stroke="white" stroke-width="0.3"/><path d="M220 200 L260 280 L230 280 L270 380" fill="none" stroke="rgba(244,123,32,0.6)" stroke-width="3"/></svg>') center/contain no-repeat;
}

.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 8px 18px; border-radius: 60px;
  color: var(--orange); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease both;
}
.hero-badge .pulse-dot { background: var(--orange); }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800; color: var(--white);
  line-height: 1.12; margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.15s both;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray-300); margin-bottom: 36px;
  max-width: 520px; line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 16px;
  animation: fadeInUp 0.8s ease 0.45s both;
}
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800; color: var(--white);
}
.hero-stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 2px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white);
  padding: 0 0 40px;
  margin-top: -48px;
  position: relative; z-index: 10;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.trust-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--off-white); }
.trust-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 24px;
  box-shadow: 0 4px 12px rgba(11,29,58,0.15);
}
.trust-title { font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.trust-desc { font-size: 0.82rem; color: var(--gray-500); }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--off-white); }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--orange); margin-bottom: 12px;
}
.section-label::before {
  content: ''; width: 32px; height: 2px; background: var(--orange); border-radius: 2px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--navy);
  margin-bottom: 16px; line-height: 1.2;
}
.section-sub { font-size: 1.05rem; color: var(--gray-500); max-width: 560px; margin-bottom: 48px; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--gray-100);
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--orange), var(--blue-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-emoji {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(244,123,32,0.1), rgba(37,99,235,0.08));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }

/* ===== URGENCE ===== */
.urgence {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}
.urgence::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><path d="M350 50 L420 180 L380 180 L450 350" fill="none" stroke="rgba(244,123,32,0.15)" stroke-width="6" stroke-linecap="round"/><path d="M600 80 L640 160 L620 160 L660 280" fill="none" stroke="rgba(244,123,32,0.08)" stroke-width="4" stroke-linecap="round"/></svg>') center/cover no-repeat;
}
.urgence .container {
  position: relative; z-index: 1;
  text-align: center;
}
.urgence-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--orange), #E06A10);
  border-radius: 50%; font-size: 38px; margin-bottom: 28px;
  box-shadow: 0 0 0 12px rgba(244,123,32,0.15), 0 0 0 24px rgba(244,123,32,0.07);
  animation: urgencePulse 2.5s ease infinite;
}
@keyframes urgencePulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(244,123,32,0.15), 0 0 0 24px rgba(244,123,32,0.07); }
  50% { box-shadow: 0 0 0 18px rgba(244,123,32,0.12), 0 0 0 36px rgba(244,123,32,0.04); }
}
.urgence h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--white);
  margin-bottom: 16px; line-height: 1.2;
}
.urgence p { font-size: 1.1rem; color: var(--gray-300); margin-bottom: 36px; max-width: 560px; margin-inline: auto; }
.urgence .btn { font-size: 1.15rem; padding: 18px 40px; }
.urgence-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ===== AVIS ===== */
.avis { padding: 100px 0; background: var(--white); }
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.avis-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}
.avis-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avis-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.avis-text { font-size: 0.95rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.avis-author { display: flex; align-items: center; gap: 12px; }
.avis-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1rem;
}
.avis-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.avis-loc { font-size: 0.8rem; color: var(--gray-500); }
.avis-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: var(--green); font-weight: 600;
}

/* ===== FORM ===== */
.devis { padding: 100px 0; background: var(--off-white); }
.devis-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.devis-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--navy);
  margin-bottom: 16px; line-height: 1.2;
}
.devis-info p { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 32px; }
.devis-benefits { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.devis-benefits li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; font-weight: 500; color: var(--navy);
}
.devis-check {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

.devis-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.88rem;
  color: var(--navy); margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 18px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  color: var(--navy); background: var(--off-white);
  transition: all 0.3s ease; outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--orange-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-300); }
.form-group textarea { resize: vertical; min-height: 100px; }
.devis-form .btn-orange { width: 100%; justify-content: center; font-size: 1.05rem; padding: 18px; }
.form-note { text-align: center; font-size: 0.8rem; color: var(--gray-500); margin-top: 12px; }

/* Form messages */
.form-msg {
  text-align: center; padding: 14px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; margin-bottom: 20px;
  display: none;
}
.form-msg.success {
  display: block; background: rgba(34,197,94,0.1);
  color: #16a34a; border: 1px solid rgba(34,197,94,0.2);
}
.form-msg.error {
  display: block; background: rgba(239,68,68,0.1);
  color: #dc2626; border: 1px solid rgba(239,68,68,0.2);
}
.form-group .field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12) !important;
}

/* Loading spinner */
.btn-loading { pointer-events: none; opacity: 0.8; }
.btn-loading .btn-text { display: none; }
.btn-loading .btn-spinner { display: inline-block; }
.btn-spinner {
  display: none; width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 64px; height: 64px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  animation: whatsappBounce 3s ease infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 36px rgba(37,211,102,0.55);
  animation: none;
}
.whatsapp-float svg { width: 34px; height: 34px; }
.whatsapp-tooltip {
  position: absolute; right: 76px; top: 50%; transform: translateY(-50%);
  background: var(--white); color: var(--navy);
  padding: 10px 18px; border-radius: 12px;
  font-size: 0.85rem; font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-50%) translateX(8px);
}
.whatsapp-tooltip::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--white);
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1; transform: translateY(-50%) translateX(0);
}
@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-8px); }
  30% { transform: translateY(0); }
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-sub { color: var(--gray-500); }
.footer-desc { font-size: 0.9rem; color: var(--gray-500); margin: 16px 0 24px; line-height: 1.7; }
.footer-phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--orange); text-decoration: none;
  font-size: 1.2rem; font-weight: 700;
}
.footer-phone:hover { color: var(--white); }
.footer-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  color: #25D366; text-decoration: none;
  font-size: 1rem; font-weight: 600; margin-top: 10px;
}
.footer-whatsapp:hover { color: var(--white); }

footer h4 {
  color: var(--white); font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links li { font-size: 0.9rem; }
.footer-links a { color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-info li { display: flex; align-items: flex-start; gap: 8px; }
.footer-info-icon { font-size: 0.85rem; margin-top: 2px; }

.footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-right { display: none; }
  .hero { min-height: auto; padding: 80px 0 100px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .avis-grid { grid-template-columns: 1fr; }
  .devis-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-phone span.phone-text { display: none; }
  .urgence-buttons { flex-direction: column; align-items: center; }
  .urgence .btn { width: 100%; max-width: 360px; justify-content: center; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .trust-item:last-child { border-bottom: none; }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
