/* ================================================
   ASOscar — Styles par page (sémantiques)
   ================================================ */

/* ── BANNIÈRE PROMO ── */
.ao-promo-banner {
  background: linear-gradient(90deg, #B45309 0%, #D97706 50%, #B45309 100%);
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 1050;
}
.ao-promo-highlight {
  background-color: #fff;
  color: #B45309;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.95rem;
}
.ao-promo-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ao-promo-link:hover { color: #FEF3C7; }

/* ── BLOC PROMO DANS LE HERO ── */
.ao-promo-hero-box {
  background: rgba(245,158,11,0.12);
  border: 1.5px solid rgba(245,158,11,0.5);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(4px);
}

/* ── BADGE -20% ── */
.ao-promo-badge-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0A2540;
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
  flex-shrink: 0;
}

/* ── BADGE PROMO DANS LE FORMULAIRE ── */
.ao-promo-form-badge {
  display: inline-block;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0A2540;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
}

/* ── HERO PAGES avec vraies photos Unsplash ── */
.ao-hero-tec {
  background:
    linear-gradient(105deg,
      rgba(10,37,64,0.96) 0%,
      rgba(10,37,64,0.82) 55%,
      rgba(10,37,64,0.55) 100%),
    url('../assets/images/chantier-renovation-residentielle.png')
    center / cover no-repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 92px 0 60px;
}

.ao-hero-it {
  background:
    linear-gradient(105deg,
      rgba(10,37,64,0.96) 0%,
      rgba(10,37,64,0.82) 55%,
      rgba(10,37,64,0.50) 100%),
    url('../assets/images/it-site-web.png')
    center / cover no-repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 92px 0 60px;
}

.ao-hero-landing {
  background:
    linear-gradient(135deg,
      rgba(10,37,64,0.97) 0%,
      rgba(10,37,64,0.80) 60%,
      rgba(10,37,64,0.55) 100%),
    url('../assets/images/hero-maison-connectee.png')
    center / cover no-repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 92px 0 60px;
}

/* ── LOGO NAVBAR ── */
.ao-navbar .navbar-brand img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(245,158,11,0.35));
}

/* ── BARRE DE CONFIANCE ── */
.ao-trust-bar {
  background-color: #0A2540;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 3px solid #F59E0B;
  color: #fff;
  padding: 14px 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.ao-trust-bar.it { border-bottom-color: #2563EB; }

/* ── FORMULAIRE DEVIS HERO ── */
.ao-lead-form-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(10,37,64,0.25);
  color: #1F2937;
}
.ao-lead-form-card h2,
.ao-lead-form-card h3,
.ao-lead-form-card .form-label {
  color: #0A2540;
  font-weight: 600;
}
.ao-lead-form-card .form-control,
.ao-lead-form-card .form-select,
.ao-form-control {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #1F2937;
  background-color: #fff;
}
.ao-lead-form-card .form-control:focus,
.ao-lead-form-card .form-select:focus,
.ao-form-control:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
  outline: none;
}

/* ── IMAGES PORTFOLIO ── */
.ao-portfolio-img {
  object-fit: cover;
  height: 220px;
  width: 100%;
  border-radius: 8px 8px 0 0;
}

/* ── TÉMOIGNAGES ── */
.ao-testimonial-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(10,37,64,0.08);
}
.ao-stars { color: #F59E0B; font-size: 1rem; }

/* ── FEATURES ── */
.ao-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ao-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background-color: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #F59E0B;
}

/* ── SECTION DANGER ── */
.ao-danger-card {
  border-left: 4px solid #EF4444;
  background-color: #FEF2F2;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  height: 100%;
}
.ao-danger-icon {
  color: #EF4444;
  font-size: 2.2rem;
}

/* ── SECTION CTA ── */
.ao-cta-section {
  background-color: #0A2540;
  color: #fff;
  padding: 70px 0;
}
.ao-cta-section h2 { color: #fff; }

/* ── OVERLAYS ── */
.ao-img-overlay {
  background: linear-gradient(to top, rgba(10,37,64,0.95), transparent);
}
.ao-cta-overlay {
  background: linear-gradient(135deg, #0A2540 0%, rgba(10,37,64,0.90) 100%);
}

/* ── STATS ── */
.ao-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #F59E0B;
}
.ao-stat-number.it { color: #2563EB; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .ao-navbar .navbar-brand img { height: 60px; }
  .ao-hero-tec, .ao-hero-it, .ao-hero-landing {
    padding: 80px 0 50px;
    min-height: auto;
  }
  .ao-lead-form-card { margin-top: 2rem; }
  .ao-promo-badge-big { width: 52px; height: 52px; font-size: 0.95rem; }
}
@media (max-width: 576px) {
  .ao-navbar .navbar-brand img { height: 50px; }
  .ao-promo-banner { font-size: 0.8rem; }
}

.z-index-1 { z-index: 1; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.ao-hero-sm {
  background:
    linear-gradient(135deg, rgba(10,37,64,0.96), rgba(10,37,64,0.86)),
    url('../assets/images/hero-maison-connectee.png') center / cover no-repeat;
  color: #fff;
  padding: 96px 0 72px;
}

.ao-hero-sm .lead {
  color: rgba(255,255,255,0.78);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ao-contact-card,
.ao-portfolio-card {
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(10,37,64,0.10);
}

.ao-portfolio-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ao-portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10,37,64,0.14);
}

.portfolio-item {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ao-filter-btn {
  border: 1px solid rgba(10,37,64,0.18);
  background: #fff;
  color: #0A2540;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ao-filter-btn:hover,
.ao-filter-btn.active {
  background: #0A2540;
  border-color: #0A2540;
  color: #fff;
}

.ao-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(10,37,64,0.10);
}

.ao-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  background: rgba(245,158,11,0.14);
  color: #B45309;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ao-contact-note {
  background: #EFF4FA;
  border: 1px solid rgba(10,37,64,0.08);
}

.ao-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ao-about-photo {
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
}
/* Final responsive safeguards */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.ao-hero-landing h1,
.ao-hero-tec h1,
.ao-hero-it h1,
.ao-hero-sm h1,
.ao-cta-section h2 {
  font-size: clamp(2rem, 6vw, 4rem) !important;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.ao-hero-landing .lead,
.ao-hero-tec .lead,
.ao-hero-it .lead,
.ao-hero-sm .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem) !important;
  overflow-wrap: break-word;
}

.btn {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 576px) {
  .ao-hero-landing h1 {
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.6rem !important;
  }

  .ao-hero-tec h1,
  .ao-hero-it h1,
  .ao-hero-sm h1,
  .ao-cta-section h2 {
    font-size: 1.85rem !important;
  }

  .ao-hero-landing .lead,
  .ao-hero-tec .lead,
  .ao-hero-it .lead,
  .ao-hero-sm .lead {
    font-size: 1rem !important;
  }

  .ao-hero-landing .btn,
  .ao-hero-tec .btn,
  .ao-hero-it .btn,
  .ao-cta-section .btn {
    width: 100%;
    max-width: 340px;
  }

  .ao-section {
    padding: 56px 0;
  }
}
/* Trust bar mobile layout */
@media (max-width: 576px) {
  .ao-trust-bar .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ao-trust-bar .d-flex {
    gap: 0.75rem !important;
  }

  .ao-trust-bar .d-flex span {
    width: 100%;
    text-align: center;
  }
}
/* Mobile navbar and hero refinements */
.ao-navbar .navbar-toggler {
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid #F59E0B;
  background-color: rgba(245,158,11,0.14);
}

.ao-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  filter: none;
}

@media (max-width: 576px) {
  .ao-hero-tec,
  .ao-hero-it,
  .ao-hero-sm,
  .ao-hero-landing {
    text-align: center;
  }

  .ao-hero-tec h1,
  .ao-hero-it h1,
  .ao-hero-sm h1 {
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.62rem !important;
  }

  .ao-hero-tec p,
  .ao-hero-it p,
  .ao-hero-sm p {
    max-width: 270px;
    margin-left: auto;
    margin-right: auto;
  }

  .ao-promo-hero-box {
    text-align: center;
  }

  .ao-promo-hero-box .d-flex {
    flex-direction: column;
    align-items: center !important;
  }

  .ao-hero-tec .row.g-3 > .col-6,
  .ao-hero-it .row.g-3 > .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ao-feature-item {
    justify-content: center;
  }
}
/* Force mobile menu visibility */
@media (max-width: 991.98px) {
  .ao-navbar .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}
/* CSS-only hamburger */
@media (max-width: 991.98px) {
  .ao-navbar .container {
    position: static;
  }

  .ao-navbar .navbar-brand {
    padding-right: 60px;
  }

  .ao-navbar .navbar-toggler {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
  }

  .ao-navbar .navbar-toggler-icon {
    display: none;
  }

  .ao-navbar .navbar-toggler::before {
    content: "";
    width: 22px;
    height: 2px;
    background: #fff;
    box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
    display: block;
  }
}
/* Mobile navbar positioning */
@media (max-width: 991.98px) {
  .ao-navbar {
    position: sticky;
    top: 0;
  }
}
/* Disable AOS offsets on mobile */
@media (max-width: 768px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}