/* ============================================
   B-A-DECORS — Custom styles complémentaires
   ============================================ */

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ---------- Logo ---------- */
.logo-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  white-space: nowrap;
}
.logo-text {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #1a2742;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #9b1c2e;
  padding-bottom: 3px;
}
.logo-sub {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  color: #9b1c2e;
  letter-spacing: 0.13em;
  margin-top: 4px;
  text-transform: uppercase;
}
.logo-mark-light .logo-text { color: #fff; border-bottom-color: #b8253a; }
.logo-mark-light .logo-sub { color: #b8253a; }

/* ---------- Navigation ---------- */
.nav-link {
  position: relative;
  color: #1a2742;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: #9b1c2e;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #9b1c2e; }
.nav-link:hover::after { width: 100%; }

/* ---------- Boutons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #9b1c2e;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border: 2px solid #9b1c2e;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(155, 28, 46, 0.25);
}
.btn-primary:hover {
  background: #7a1422;
  border-color: #7a1422;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(155, 28, 46, 0.4);
}
.btn-primary:focus-visible {
  outline: 3px solid #b8253a;
  outline-offset: 2px;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  border: 2px solid #fff;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-outline:hover {
  background: #fff;
  color: #1a2742;
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  background-image: url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10,14,25,0.92) 0%, rgba(15,23,41,0.75) 55%, rgba(15,23,41,0.35) 100%);
}

/* ---------- Réassurance ---------- */
.reassurance-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #9b1c2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #e9ecf2;
  box-shadow: 0 4px 20px rgba(26, 39, 66, 0.06);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #9b1c2e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26, 39, 66, 0.15);
  border-color: #9b1c2e;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2742 0%, #2a3a5f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all 0.35s ease;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, #9b1c2e 0%, #b8253a 100%);
  transform: scale(1.08) rotate(-5deg);
}

/* ---------- Stats ---------- */
.stat-card {
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-4px); }

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: #9b1c2e;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Zone tags ---------- */
.zone-tag {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: #fff;
  border: 2px solid #1a2742;
  color: #1a2742;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s;
  cursor: default;
}
.zone-tag:hover {
  background: #9b1c2e;
  border-color: #9b1c2e;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */
.contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #9b1c2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #1a2742;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid #e1e5ec;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #1a2742;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus {
  outline: none;
  border-color: #9b1c2e;
  box-shadow: 0 0 0 3px rgba(155, 28, 46, 0.15);
}
.form-input.error {
  border-color: #dc2626;
  background: #fef2f2;
}

/* ---------- Header scroll state ---------- */
#header.scrolled {
  box-shadow: 0 4px 20px rgba(26, 39, 66, 0.08);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Réalisations ---------- */
.realisation-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 20px rgba(26, 39, 66, 0.08);
  cursor: pointer;
}
.realisation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.realisation-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
  background: linear-gradient(to top, rgba(15,23,41,0.92) 0%, rgba(15,23,41,0.25) 55%, transparent 100%);
  transition: background 0.4s ease;
}
.realisation-card:hover img { transform: scale(1.08); }
.realisation-card:hover figcaption {
  background: linear-gradient(to top, rgba(155,28,46,0.92) 0%, rgba(15,23,41,0.45) 60%, rgba(15,23,41,0.15) 100%);
}
.realisation-card .tag {
  display: inline-block;
  align-self: flex-start;
  background: #9b1c2e;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.realisation-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.realisation-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

/* ---------- Témoignages ---------- */
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid #e9ecf2;
  box-shadow: 0 4px 20px rgba(26, 39, 66, 0.06);
  transition: all 0.35s ease;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(155, 28, 46, 0.12);
  font-weight: 700;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 39, 66, 0.15);
  border-color: #9b1c2e;
}
.testimonial-card .stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}
.testimonial-card .stars svg {
  width: 18px;
  height: 18px;
  fill: #f5a623;
}
.testimonial-card .quote {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e9ecf2;
}
.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b1c2e 0%, #b8253a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-card .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1a2742;
  font-size: 0.95rem;
}
.testimonial-card .project {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ---------- Footer ---------- */
.footer {
  background: #0f1729;
  color: #d1d5db;
}
.footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2px;
  background: #9b1c2e;
}
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: all 0.25s;
  position: relative;
  padding-left: 0;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 8px;
}
.footer-links a::before {
  content: '›';
  position: absolute;
  left: -4px;
  opacity: 0;
  transition: opacity 0.25s;
  color: #9b1c2e;
  font-weight: 700;
}
.footer-links a:hover::before { opacity: 1; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #d1d5db;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.social-icon:hover {
  background: #9b1c2e;
  border-color: #9b1c2e;
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  background: #0a0f1a;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .logo-text { font-size: 1.05rem; }
  .logo-sub  { font-size: 0.42rem; }
}
