/* ============================================================
   AdhéCom.fr — Feuille de style personnalisée
   Variables de marque + utilitaires complémentaires à Tailwind
   ============================================================ */

:root {
  --brand-primaire: #003D8F;
  --bleu:   #003D8F;
  --noir:   #1a1a1a;
  --blanc:  #FFFFFF;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--noir);
  -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  font-weight: 500;
  color: #374151;
  transition: color 0.15s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--brand-primaire);
  transition: width 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--brand-primaire); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-bleu {
  background: var(--brand-primaire);
  color: #fff;
  border-color: var(--brand-primaire);
}
.btn-bleu:hover { background: #002B66; border-color: #002B66; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--noir); }

.btn-outline-bleu {
  background: transparent;
  color: var(--brand-primaire);
  border-color: var(--brand-primaire);
}
.btn-outline-bleu:hover { background: var(--brand-primaire); color: #fff; }

/* ---- Hero gradient ---- */
.hero-gradient {
  background: linear-gradient(135deg, var(--noir) 0%, #1e3a5f 100%);
}

/* ---- Cards ---- */
.service-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ---- Galerie ---- */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
}
.gallery-item img {
  transition: transform 0.4s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---- Lightbox ---- */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  display: none;
}
#lightbox:not(.hidden) {
  display: flex;
}
#lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 0.75rem;
  object-fit: contain;
}

/* ---- Formulaire multi-étapes ---- */
.step-panel { display: none; }
.step-panel.active { display: block; }

.step-indicator {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}
.step-indicator.done    { background: #22c55e; color: #fff; }
.step-indicator.current { background: var(--brand-primaire); color: #fff; }
.step-indicator.pending { background: #e5e7eb; color: #9ca3af; }

/* ---- Utilitaires ---- */
.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--noir);
  margin-bottom: 1rem;
}
.section-sub {
  color: #4b5563;
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Spinner de filtre ---- */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--brand-primaire);
  background: var(--brand-primaire);
  color: #fff;
}
