/* GOCO SARL — Gothique Construction */
:root {
  --goco-blue: #002855;
  --goco-red: #e31e24;
  --goco-orange: #f15a24;
  --goco-white: #ffffff;
  --goco-cream: #f4f6f9;
  --goco-text: #1a2b3c;
  --goco-muted: #5c6b7a;
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 76px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--goco-text);
  background: var(--goco-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
}

.text-goco-blue {
  color: var(--goco-blue) !important;
}
.text-goco-orange {
  color: var(--goco-orange) !important;
}
.text-goco-red {
  color: var(--goco-red) !important;
}
.bg-goco-blue {
  background-color: var(--goco-blue) !important;
}
.bg-goco-cream {
  background-color: var(--goco-cream) !important;
}

/* Brand divider (logo-inspired) */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 auto 2.5rem;
  max-width: 280px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--goco-orange),
    transparent
  );
}
.section-divider span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--goco-red);
  box-shadow: -16px 0 0 var(--goco-orange), -32px 0 0 var(--goco-blue);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 40, 85, 0.08);
  transition: box-shadow 0.35s var(--transition-smooth);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 40, 85, 0.12);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-brand .brand-logo-img {
  vertical-align: middle;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    padding: 0.5rem 0.85rem !important;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--goco-blue) !important;
    position: relative;
  }
  .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--goco-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--transition-smooth);
  }
  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link:focus::after {
    transform: scaleX(1);
  }
}

.btn-cta-orange {
  background: var(--goco-orange);
  border-color: var(--goco-orange);
  color: #fff !important;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  transition: transform 0.25s var(--transition-smooth),
    box-shadow 0.25s var(--transition-smooth);
}
.btn-cta-orange:hover,
.btn-cta-orange:focus {
  background: #d94e1c;
  border-color: #d94e1c;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(241, 90, 36, 0.35);
  color: #fff !important;
}

.btn-outline-hero {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff !important;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  transition: all 0.3s var(--transition-smooth);
}
.btn-outline-hero:hover {
  background: #fff;
  color: var(--goco-blue) !important;
  border-color: #fff;
}

/* Hero */
.hero-wrap {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  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(
    120deg,
    rgba(0, 40, 85, 0.82) 0%,
    rgba(0, 40, 85, 0.45) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 5rem;
}

.hero-video-controls {
  margin-top: 1.25rem;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-control {
  touch-action: manipulation;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff !important;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  transition: transform 0.25s var(--transition-smooth),
    background 0.25s var(--transition-smooth),
    box-shadow 0.25s var(--transition-smooth);
}
.btn-hero-control:hover,
.btn-hero-control:focus {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.btn-hero-control i {
  font-size: 1.15rem;
  vertical-align: -2px;
  margin-right: 0.35rem;
}

.btn-hero-control.hero-sound-toggle {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  row-gap: 0.25rem;
  text-align: left;
}

.btn-hero-control.hero-sound-toggle i {
  margin-right: 0;
}

.hero-sound-toggle__text {
  font-weight: 600;
  font-size: clamp(0.62rem, 3.9vw, 0.875rem);
  line-height: 1.22;
}

@media (max-width: 360px) {
  .btn-hero-control.hero-sound-toggle {
    padding-left: 0.65rem;
    padding-right: 0.75rem;
  }
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  background: rgba(241, 90, 36, 0.2);
  border: 1px solid rgba(241, 90, 36, 0.45);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition-smooth),
    transform 0.7s var(--transition-smooth);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stats */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(0, 40, 85, 0.08);
  box-shadow: 0 12px 40px rgba(0, 40, 85, 0.06);
  transition: transform 0.35s var(--transition-smooth),
    box-shadow 0.35s var(--transition-smooth);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 40, 85, 0.1);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--goco-blue);
  line-height: 1;
}
.stat-label {
  color: var(--goco-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* Services */
.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  border: 1px solid rgba(0, 40, 85, 0.07);
  transition: transform 0.4s var(--transition-smooth),
    box-shadow 0.4s var(--transition-smooth), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--goco-blue),
    var(--goco-orange),
    var(--goco-red)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--transition-smooth);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 40, 85, 0.12);
  border-color: rgba(241, 90, 36, 0.25);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 40, 85, 0.08),
    rgba(241, 90, 36, 0.12)
  );
  color: var(--goco-blue);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

/* Maquettes grid */
.maquette-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 28px rgba(0, 40, 85, 0.1);
  transition: transform 0.4s var(--transition-smooth),
    box-shadow 0.4s var(--transition-smooth);
}
.maquette-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--transition-smooth);
}
.maquette-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 40, 85, 0.78),
    transparent 52%
  );
  opacity: 0;
  transition: opacity 0.35s;
}
.maquette-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0, 40, 85, 0.18);
}
.maquette-item:hover img {
  transform: scale(1.06);
}
.maquette-item:hover::after {
  opacity: 1;
}

/* Why us */
.why-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 40, 85, 0.06);
}
.why-item:last-child {
  border-bottom: none;
}
.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--goco-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0, 40, 85, 0.07);
  box-shadow: 0 16px 48px rgba(0, 40, 85, 0.08);
  min-height: 220px;
}
.testimonial-stars {
  color: var(--goco-orange);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

/* Form */
.devis-form .form-control,
.devis-form .form-select {
  border-radius: 8px;
  border-color: rgba(0, 40, 85, 0.15);
  padding: 0.65rem 0.9rem;
}
.devis-form .form-control:focus,
.devis-form .form-select:focus {
  border-color: var(--goco-orange);
  box-shadow: 0 0 0 0.2rem rgba(241, 90, 36, 0.15);
}
.btn-devis-submit {
  background: var(--goco-red);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-devis-submit:hover {
  background: #c41920;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(227, 30, 36, 0.35);
}

/* Contact map */
.map-embed {
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(0, 40, 85, 0.1);
  box-shadow: 0 12px 40px rgba(0, 40, 85, 0.08);
}
.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--goco-blue);
  color: rgba(255, 255, 255, 0.88);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--goco-orange);
}
.footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 0.5rem;
}
.footer-social a:hover {
  background: var(--goco-orange);
  color: #fff !important;
}

/* FAB WhatsApp */
.fab-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  min-height: 52px;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--transition-smooth),
    box-shadow 0.25s var(--transition-smooth);
  max-width: calc(100vw - 2rem);
}
.fab-wa__icon {
  font-size: 1.55rem;
  flex-shrink: 0;
  line-height: 1;
}
.fab-wa__label {
  white-space: nowrap;
  line-height: 1.2;
}
.fab-wa:hover {
  transform: translateY(-2px);
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* Lightbox */
.lightbox-modal .modal-content {
  background: rgba(15, 25, 35, 0.97);
  border: none;
  border-radius: 12px;
}
.lightbox-modal .modal-body {
  padding: 0;
}
.lightbox-modal img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

/* Loader bars (optional subtle) */
.brand-loader {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
}
.brand-loader span {
  width: 5px;
  border-radius: 2px;
  animation: barPulse 1.2s ease-in-out infinite;
}
.brand-loader span:nth-child(1) {
  height: 18px;
  background: var(--goco-blue);
  animation-delay: 0s;
}
.brand-loader span:nth-child(2) {
  height: 14px;
  background: var(--goco-orange);
  animation-delay: 0.15s;
}
.brand-loader span:nth-child(3) {
  height: 10px;
  background: var(--goco-red);
  animation-delay: 0.3s;
}
@keyframes barPulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.85;
  }
  50% {
    transform: scaleY(0.55);
    opacity: 1;
  }
}

/* About image */
.about-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 40, 85, 0.15);
  border: 1px solid rgba(0, 40, 85, 0.08);
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}
