/* ==========================================================================
   Miroiterie Aurore — styles complémentaires (Tailwind + custom)
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* Fond quadrillé évoquant la découpe du verre */
.glass-pattern {
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Transition générique */
.transition-slow {
  transition: all 0.3s ease;
}

/* Cartes avec légère élévation au survol */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Icônes de service */
.glass-icon {
  color: #3b82f6;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.glass-icon .fa-stack { font-size: 1.6rem; }

/* Overlay du hero (dégradé lisible) */
.hero-overlay {
  background: linear-gradient(to right, rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.75));
}
@media (max-width: 767px) {
  .hero-overlay { background: rgba(248, 250, 252, 0.85); }
}

/* Navigation */
.nav-link {
  position: relative;
  padding: 0.4rem 0;
  font-weight: 500;
  color: #4b5563;
}
.nav-link:hover {
  color: #2563eb;
}
.nav-link[aria-current="page"] {
  color: #2563eb;
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 2px;
}
.nav-link.is-active {
  color: #2563eb;
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 2px;
}

/* Dropdown services (desktop) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}
.dropdown-menu a:hover {
  background: #eff6ff;
  color: #2563eb;
}

/* Boutons */
.btn-primary {
  display: inline-block;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background: #2563eb;
  color: #ffffff;
}
.btn-outline {
  display: inline-block;
  border: 2px solid #3b82f6;
  color: #3b82f6;
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-outline:hover {
  background: #3b82f6;
  color: #ffffff;
}
.btn-white {
  display: inline-block;
  background: #ffffff;
  color: #2563eb;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}
.btn-white:hover {
  background: #e2e8f0;
}

/* Titres de section avec filet bleu */
.section-title {
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 5rem;
  height: 4px;
  border-radius: 2px;
  background: #3b82f6;
}
.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Accessibilité : focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Chevron du dropdown ouvert (mobile) */
.dropdown-open > .dropdown-toggle i.fa-chevron-down,
.mobile-submenu-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.dropdown-toggle i,
.mobile-submenu-toggle i {
  transition: transform 0.2s ease;
}

/* Menu mobile */
#mobile-nav.open {
  display: block;
}
.mobile-submenu {
  display: none;
}
.mobile-submenu.open {
  display: block;
}

/* Animation d'apparition douce des sections */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* Bandes image des pages internes */
.page-banner {
  position: relative;
}
.page-banner img {
  object-fit: cover;
  width: 100%;
}