/* =============================================
   G.T. Aspirateur S.O.S — style.css
   Dark premium theme, amber accents
   ============================================= */

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

/* ---------- VARIABLES ---------- */
:root {
  --bg:            #0f0f0f;
  --bg-alt:        #131313;
  --surface:       #1c1c1c;
  --surface-hover: #222;
  --accent:        #D4A017;
  --accent-dark:   #b88a12;
  --accent-light:  #e8b82a;
  --accent-glow:   rgba(212, 160, 23, 0.18);
  --accent-border: rgba(212, 160, 23, 0.22);
  --text:          #f0ece4;
  --text-muted:    #888;
  --text-dim:      #444;
  --border:        rgba(255, 255, 255, 0.06);
  --radius:        14px;
  --radius-sm:     8px;
  --radius-pill:   100px;
  --shadow-gold:   0 4px 28px rgba(212, 160, 23, 0.2);
  --font:          'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --transition:    0.25s ease;
}

/* ---------- BASE ---------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
}

.section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 4px;
  margin-bottom: 52px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
  animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(212, 160, 23, 0.45);
  animation: none;
}

.btn-hero {
  padding: 15px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.btn-large {
  padding: 17px 40px;
  font-size: 1.15rem;
  border-radius: var(--radius);
}

.btn-nav {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent-border);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-nav:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(212, 160, 23, 0.2); }
  50%       { box-shadow: 0 4px 44px rgba(212, 160, 23, 0.55); }
}

/* ---------- NAVIGATION ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease;
}

#navbar.scrolled {
  background: rgba(15, 15, 15, 0.96);
  border-color: var(--accent-border);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 28px 80px;
  overflow: hidden;
}

/* Radial gold glow */
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(212, 160, 23, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Dot grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(212, 160, 23, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-icon {
  margin-bottom: 28px;
  animation: float 4.5s ease-in-out infinite;
  display: inline-block;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-specialty {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.hero-specialty strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-number {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ---------- SCROLL INDICATOR ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-y 2.2s ease-in-out infinite;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.4;
}

@keyframes bounce-y {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 0.8; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-11px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- EXPERTISE CARDS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 52px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  background: var(--surface-hover);
}

.card-icon {
  margin-bottom: 22px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ---------- CAROUSEL ---------- */
.carousel-outer {
  overflow: hidden;
  width: 100%;
  padding: 36px 0;
  position: relative;
}

/* Fade masks on edges */
.carousel-outer::before,
.carousel-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.carousel-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt) 0%, transparent 100%);
}

.carousel-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt) 0%, transparent 100%);
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-item {
  flex-shrink: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  filter: grayscale(0.6) brightness(0.7);
}

.carousel-item:hover {
  filter: grayscale(0) brightness(1);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-gold);
  transform: scale(1.04);
}

.carousel-item img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.service-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  box-shadow: 0 0 8px var(--accent);
}

.service-item h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- CITIES ---------- */
.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.city-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: default;
  user-select: none;
}

.city-chip:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ---------- CONTACT ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 52px 48px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0d0d;
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(212, 160, 23, 0.4);
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  text-align: left;
}

.contact-since {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: left;
}

.contact-card address {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.93rem;
  line-height: 1.75;
}

/* ---------- FOOTER ---------- */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
}

footer p {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease calc(var(--delay, 0s)), transform 0.65s ease calc(var(--delay, 0s));
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .cards-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 36px 24px;
  }

  .nav-logo {
    font-size: 0.9rem;
  }

  .carousel-outer::before,
  .carousel-outer::after {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .btn-hero,
  .btn-large {
    padding: 14px 26px;
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .contact-card {
    padding: 28px 18px;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-icon,
  .scroll-indicator,
  .btn-primary,
  .carousel-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
