/* ================================================================
   Bat Est — Feuille de style partagée
   Complète Tailwind (via CDN) pour les composants custom
   ================================================================ */

/* ----------------------------------------------------------------
   1. Variables (design tokens alignés avec tailwind.config)
   ---------------------------------------------------------------- */
:root {
  --brand:       #D97706;
  --brand-light: #F59E0B;
  --brand-dark:  #B45309;

  --dark-900: #0A0A0F;
  --dark-800: #111118;
  --dark-700: #1A1A25;
  --dark-600: #22222F;
  --dark-500: #2E2E3E;

  --text-base:   #E2E8F0; /* gray-200 */
  --text-muted:  #94A3B8; /* gray-400 */
  --text-subtle: #6B7280; /* gray-500 */
}

/* ----------------------------------------------------------------
   2. Base
   ---------------------------------------------------------------- */
html {
  font-family: "Inter", system-ui, sans-serif;
  scroll-behavior: smooth;
}

/* ----------------------------------------------------------------
   3. Navigation — underline animée
   ---------------------------------------------------------------- */
.nav-link::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ----------------------------------------------------------------
   4. Hero — fond grille
   ---------------------------------------------------------------- */
.hero-bg {
  background-color: var(--dark-900);
  background-image:
    linear-gradient(rgba(217, 119, 6, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 119, 6, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ----------------------------------------------------------------
   5. Cartes — lift au hover
   ---------------------------------------------------------------- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------------------------------
   6. Réalisations — overlay photo
   ---------------------------------------------------------------- */
.realisation-card:hover .realisation-overlay {
  opacity: 1;
}
.realisation-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ----------------------------------------------------------------
   7. Formulaire — focus ring
   ---------------------------------------------------------------- */
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

/* ----------------------------------------------------------------
   8. Scroll reveal
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   9. Bouton principal (réutilisé dans merci.html et ailleurs)
   ---------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   10. Page de confirmation (merci.html)
   ---------------------------------------------------------------- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-900);
  color: var(--text-base);
}

.success-card {
  max-width: 640px;
  padding: 3rem 2rem;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  stroke: #22c55e;
}

.success-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #fff;
}

.success-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
