:root {
  --primary: #0f2942;
  --accent: #c2410f;
  --light-bg: #f5f5f5;
  --text-body: #374151;
  --text-muted: #6b7280;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-body);
  margin: 0;
}

/* ── ProxiWeb Banner ── */
.proxi-banner {
  position: sticky; top: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(90deg, #1a305a, #1f2937);
  color: #fff; font-size: 15px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  animation: bannerSlideIn 800ms ease-out forwards;
}
.proxi-banner__pill {
  background: #d3542e; color: white; font-size: 12px;
  font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 9999px; flex-shrink: 0;
}
.proxi-banner__text { margin: 0; line-height: 1.4; text-align: center; }
.proxi-banner a { color: #fbbf24; font-weight: 600; text-decoration: none; }

@media (max-width: 640px) {
  .proxi-banner { padding: 8px 0 8px 12px; gap: 10px; overflow: hidden; }
  .proxi-banner__pill { flex-shrink: 0; }
  .proxi-banner__text {
    white-space: nowrap; font-size: 13px; text-align: left;
    animation: marquee 20s linear infinite; display: block;
  }
}
@keyframes bannerSlideIn { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes marquee { 0% { transform: translateX(60vw); } 100% { transform: translateX(-100%); } }

/* ── Navbar ── */
#navbar {
  position: sticky;
  z-index: 1000;
  background: #000;
  transition: top 0s;
}

/* ── Tailwind custom utilities (fallback for CDN play) ── */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-light-bg { background-color: var(--light-bg) !important; }
.text-text-body { color: var(--text-body) !important; }
.text-text-muted { color: var(--text-muted) !important; }
.border-accent { border-color: var(--accent) !important; }

/* ── Services cards hover accent ── */
.group:hover .text-accent { color: var(--accent); }

/* ── Form styling ── */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-body);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194,65,15,0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Confirmation message ── */
#form-confirmation {
  display: none;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.05rem;
}

/* ── Réalisations placeholder ── */
.realisation-placeholder {
  background: #e5e7eb;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.realisation-placeholder svg {
  width: 48px; height: 48px;
  color: #9ca3af;
}

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Carousel ── */
.carousel-inner { position: relative; }
.carousel-wrapper { overflow: hidden; border-radius: 1rem; }
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-slide { flex-shrink: 0; width: 100%; padding: 0 4px; }
.carousel-nav {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 20px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  border: none; cursor: pointer; padding: 0;
  transition: all 0.25s ease;
}
.carousel-dot.active { width: 24px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}
.carousel-btn-prev { left: -16px; }
.carousel-btn-next { right: -16px; }

.carousel-light .carousel-btn {
  background: #fff; color: #111;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.carousel-light .carousel-btn:hover { background: #f3f4f6; }
.carousel-light .carousel-dot { background: #d1d5db; }
.carousel-light .carousel-dot.active { background: var(--accent); }

.carousel-dark .carousel-btn { background: rgba(255,255,255,0.15); color: #fff; }
.carousel-dark .carousel-btn:hover { background: rgba(255,255,255,0.28); }
.carousel-dark .carousel-dot { background: rgba(255,255,255,0.3); }
.carousel-dark .carousel-dot.active { background: #fff; }

/* ── Accent checkmarks ── */
.check-accent { color: var(--accent); font-weight: 700; }
