/* ═══════════════════════════════════════════
   Bud-Elec — Style Principal
   Couleurs: Ambre #F5B741 · Charbon #3C3C3C · Crème #F5F0E6
   Fonts: Barlow Condensed (titres) · DM Sans (corps)
   ═══════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #F5F0E6;
  color: #1A1A1A;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ─── Container ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* ─── Utilities ─── */
.text-amber { color: #F5B741; }

.shadow-hard {
  box-shadow: 4px 4px 0px 0px rgba(60, 60, 60, 1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px rgba(60, 60, 60, 1);
}

.btn-primary {
  background-color: #F5B741;
  color: #1A1A1A;
}
.btn-primary:hover { background-color: #e0a020; }

.btn-secondary {
  background-color: #3C3C3C;
  color: #F5F0E6;
}
.btn-secondary:hover { background-color: #2A2A2A; }

.btn-full { width: 100%; }

/* ─── Section Tags & Titles ─── */
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: #F5B741;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #3C3C3C;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

/* ═══ NAVBAR ═══ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(245, 240, 230, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #D1C7B7;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 768px) {
  .nav-container {
    padding: 0 24px;
    height: 80px;
  }
}

.logo-img {
  height: 48px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-img { height: 64px; }
}

.nav-links {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3C3C3C;
  transition: color 0.2s ease;
}

.nav-link:hover { color: #F5B741; }

.nav-phone {
  display: none;
  align-items: center;
  gap: 8px;
  background-color: #F5B741;
  color: #1A1A1A;
  padding: 8px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 2px 2px 0px 0px rgba(60, 60, 60, 1);
  transition: background-color 0.2s ease;
}

.nav-phone:hover { background-color: #e0a020; }

@media (min-width: 768px) {
  .nav-phone { display: inline-flex; }
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #3C3C3C;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background-color: rgba(245, 240, 230, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #D1C7B7;
}

.mobile-menu.open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3C3C3C;
  transition: color 0.2s ease;
}

.mobile-link:hover { color: #F5B741; }

.mobile-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #F5B741;
  color: #1A1A1A;
  padding: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  box-shadow: 2px 2px 0px 0px rgba(60, 60, 60, 1);
}

/* ═══ HERO ═══ */
.hero {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #F5F0E6;
}

@media (min-width: 768px) {
  .hero { padding-top: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero-text {
  padding-top: 32px;
}

@media (min-width: 768px) {
  .hero-text { padding-top: 0; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  border: 1px solid #D1C7B7;
  padding: 6px 12px;
  margin-bottom: 24px;
}

.hero-badge span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5A5A5A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #3C3C3C;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
}

.hero-desc {
  font-size: 1rem;
  color: #5A5A5A;
  margin-top: 24px;
  max-width: 28rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-desc { font-size: 1.125rem; }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

/* Trust Badges */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #D1C7B7;
}

.trust-item { text-align: center; }

.trust-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3C3C3C;
}

.trust-label {
  font-size: 0.75rem;
  color: #5A5A5A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background-color: #D1C7B7;
}

/* Hero Image */
.hero-image-wrapper {
  display: none;
  position: relative;
}

@media (min-width: 768px) {
  .hero-image-wrapper { display: block; }
}

.hero-image-accent {
  position: absolute;
  inset: -12px;
  background-color: #F5B741;
  z-index: 0;
  transform: translate(12px, 12px);
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .hero-img { height: 580px; }
}

/* Hero Logo Box */
.hero-logo-box {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
  background-color: #F5F0E6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

@media (min-width: 1024px) {
  .hero-logo-box { height: 580px; }
}

.hero-logo-img {
  max-height: 320px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .hero-logo-img { max-height: 384px; }
}

/* ═══ SERVICES ═══ */
.services {
  padding: 80px 0;
  background-color: #fff;
}

@media (min-width: 768px) {
  .services { padding: 128px 0; }
}

.section-header {
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.service-card {
  padding: 32px;
  border: 1px solid #D1C7B7;
  background-color: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 6px 6px 0px 0px rgba(60, 60, 60, 1);
  transform: translate(-2px, -2px);
}

.service-card.featured {
  background-color: #3C3C3C;
  border-color: #3C3C3C;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F5F0E6;
  margin-bottom: 24px;
  color: #3C3C3C;
  transition: background-color 0.2s ease;
}

.service-card:hover .service-icon {
  background-color: #F5B741;
}

.service-icon.featured-icon {
  background-color: #F5B741;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #3C3C3C;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .service-card h3 { font-size: 1.5rem; }
}

.service-card.featured h3 { color: #fff; }

.service-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #5A5A5A;
}

.service-card.featured p { color: #D1C7B7; }

/* ═══ GALLERY ═══ */
.gallery {
  padding: 80px 0;
  background-color: #F5F0E6;
}

@media (min-width: 768px) {
  .gallery { padding: 128px 0; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #D1C7B7;
}

.gallery-large {
  grid-column: span 1;
  grid-row: span 1;
}

@media (min-width: 640px) {
  .gallery-large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (min-width: 640px) {
  .gallery-item img { height: 224px; }
  .gallery-large img { height: 100%; }
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #F5B741;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-desc {
  font-size: 0.875rem;
  color: #fff;
  margin-top: 4px;
}

/* ═══ CONTACT ═══ */
.contact {
  padding: 80px 0;
  background-color: #fff;
}

@media (min-width: 768px) {
  .contact { padding: 128px 0; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 2fr 3fr;
    gap: 64px;
  }
}

/* Phone Big */
.phone-big {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #F5B741;
  color: #1A1A1A;
  padding: 16px 24px;
  margin-bottom: 32px;
  margin-top: 32px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.phone-big:hover {
  background-color: #e0a020;
  transform: scale(1.02);
}

.phone-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-label {
  font-size: 0.75rem;
  color: rgba(60, 60, 60, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 4px 4px 0px 0px rgba(60,60,60,1), 0 0 0 0 rgba(245,183,65,0.4); }
  50% { box-shadow: 4px 4px 0px 0px rgba(60,60,60,1), 0 0 0 12px rgba(245,183,65,0); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3C3C3C;
  transition: color 0.2s ease;
}

a.contact-detail-item:hover { color: #F5B741; }

.contact-icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F5F0E6;
  flex-shrink: 0;
}

.detail-main {
  font-size: 0.875rem;
  font-weight: 500;
}

.detail-sub {
  font-size: 0.75rem;
  color: #5A5A5A;
}

/* Map */
.map-wrapper {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid #D1C7B7;
}

/* Contact Form */
.contact-form {
  background-color: #F5F0E6;
  padding: 24px;
  border: 1px solid #D1C7B7;
}

@media (min-width: 768px) {
  .contact-form { padding: 32px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group + .form-group:not(.form-row .form-group) {
  margin-top: 0;
}

label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3C3C3C;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  background-color: #fff;
  border: 1px solid #D1C7B7;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  border-color: #F5B741;
  box-shadow: 0 0 0 2px rgba(245, 183, 65, 0.3);
}

input::placeholder, textarea::placeholder {
  color: #999;
}

textarea {
  resize: none;
}

.form-message {
  margin-top: 16px;
  padding: 16px;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ═══ FOOTER ═══ */
.footer {
  background-color: #3C3C3C;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .footer { padding: 64px 0; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #D1C7B7;
  line-height: 1.7;
  max-width: 20rem;
}

.footer-services h4,
.footer-contact h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-services ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-services a {
  font-size: 0.875rem;
  color: #D1C7B7;
  transition: color 0.2s ease;
}

.footer-services a:hover { color: #F5B741; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact h4 { margin-bottom: 4px; }

.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #D1C7B7;
  transition: color 0.2s ease;
}

a.footer-link:hover { color: #F5B741; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #5A5A5A;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #5A5A5A;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #5A5A5A;
  transition: color 0.2s ease;
}

.back-to-top:hover { color: #F5B741; }

/* ═══ ANIMATIONS ═══ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F0E6; }
::-webkit-scrollbar-thumb { background: #D1C7B7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3C3C3C; }
