/* =================================================================
   STYLES PERSONNALISÉS — complètent Tailwind (chargé via CDN)
   Palette : #0D2A4A (bleu foncé) · #74C947 (vert) · #F8FAFC (fond)
   ================================================================= */

/* ----------------------------------------------------------------
   BOUTONS
   ---------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: #74C947;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(116, 201, 71, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #68b73f;
  box-shadow: 0 12px 26px rgba(116, 201, 71, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #0D2A4A;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: #0D2A4A;
  box-shadow: 0 10px 22px rgba(13, 42, 74, 0.12);
}

/* ----------------------------------------------------------------
   NAVBAR
   ---------------------------------------------------------------- */
.nav-link {
  font-weight: 500;
  color: #0D2A4A;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #74C947; }

.mobile-link {
  display: block;
  font-weight: 500;
  color: #0D2A4A;
  padding: 0.25rem 0;
}
.mobile-link:hover { color: #74C947; }

/* Effet "verre" quand on scrolle (classe ajoutée en JS) */
#navbar.scrolled {
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(13, 42, 74, 0.06);
}

/* Lignes du hamburger */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #0D2A4A;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animation croix quand le menu est ouvert */
#menu-toggle.open .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menu-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
#menu-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------
   HERO — décor de fond dégradé subtil
   ---------------------------------------------------------------- */
.hero-gradient {
  background:
    radial-gradient(circle at 80% 20%, rgba(116, 201, 71, 0.12), transparent 45%),
    radial-gradient(circle at 10% 30%, rgba(13, 42, 74, 0.06), transparent 40%);
}

/* ----------------------------------------------------------------
   IMAGES MOCKUP DU HERO (ordinateur + téléphone)
   ---------------------------------------------------------------- */
.hero-laptop-img {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(13, 42, 74, 0.25);
}

/* Téléphone superposé en bas à gauche */
.hero-phone-img {
  position: absolute;
  bottom: -36px;
  left: -8px;
  width: 130px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(13, 42, 74, 0.3);
}

@media (min-width: 640px) {
  .hero-phone-img { width: 160px; left: -24px; }
}

/* BADGE flottant prix */
.badge-float {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 16px 32px rgba(13, 42, 74, 0.18);
}

/* ----------------------------------------------------------------
   CARTES TARIFS
   ---------------------------------------------------------------- */
.price-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 30px rgba(13, 42, 74, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(13, 42, 74, 0.12);
}
.price-card-featured {
  border: 2px solid #74C947;
  box-shadow: 0 20px 45px rgba(116, 201, 71, 0.18);
}

/* ----------------------------------------------------------------
   CARTES FONCTIONNALITÉS
   ---------------------------------------------------------------- */
.feature-card {
  background-color: #F8FAFC;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid #eef2f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(13, 42, 74, 0.1);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: rgba(116, 201, 71, 0.12);
  color: #74C947;
}

/* ----------------------------------------------------------------
   CARTES "POUR QUI"
   ---------------------------------------------------------------- */
.audience-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 1rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid #eef2f6;
  box-shadow: 0 8px 24px rgba(13, 42, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.audience-card:hover {
  transform: translateY(-4px);
  color: #74C947;
  box-shadow: 0 16px 36px rgba(13, 42, 74, 0.1);
}

/* ----------------------------------------------------------------
   CARTES OPTIONS
   ---------------------------------------------------------------- */
.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #F8FAFC;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid #eef2f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.option-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13, 42, 74, 0.1);
}
.option-price {
  font-weight: 800;
  color: #74C947;
}

/* ----------------------------------------------------------------
   TIMELINE
   ---------------------------------------------------------------- */
.timeline-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid #eef2f6;
  box-shadow: 0 8px 24px rgba(13, 42, 74, 0.04);
}
.timeline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background-color: #0D2A4A;
  color: #74C947;
  font-weight: 800;
}
.timeline-arrow {
  text-align: center;
  color: #74C947;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
}

/* ----------------------------------------------------------------
   FORMULAIRE
   ---------------------------------------------------------------- */
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0D2A4A;
}
.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background-color: #F8FAFC;
  color: #0D2A4A;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #74C947;
  box-shadow: 0 0 0 3px rgba(116, 201, 71, 0.2);
  background-color: #ffffff;
}

/* Honeypot anti-spam : invisible pour les humains, visible pour les bots */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   RÉALISATIONS — Cartes portfolio avec overlay au survol
   ---------------------------------------------------------------- */
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0D2A4A;
  box-shadow: 0 10px 30px -12px rgba(13, 42, 74, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(13, 42, 74, 0.4);
}

.work-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover .work-img {
  transform: scale(1.06);
}

/* Voile dégradé + texte, remonte au survol */
.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(13, 42, 74, 0.92) 0%, rgba(13, 42, 74, 0.55) 45%, rgba(13, 42, 74, 0) 80%);
  color: #fff;
}

.work-tag {
  align-self: flex-start;
  border-radius: 9999px;
  background: #74C947;
  padding: 0.15rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.work-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}
.work-desc {
  font-size: 0.875rem;
  color: #e2e8f0;
  /* Masqué puis révélé en douceur au survol (desktop) */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
.work-card:hover .work-desc {
  max-height: 4rem;
  opacity: 1;
}

/* Sur écrans tactiles, on affiche toujours la description */
@media (hover: none) {
  .work-desc { max-height: 4rem; opacity: 1; }
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.footer-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #74C947; }

/* ----------------------------------------------------------------
   ANIMATIONS — Fade in au scroll (déclenché en JS)
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Flottement doux des mockups */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-slow { animation: float 6s ease-in-out infinite; }

/* Respect des préférences d'accessibilité (réduction des animations) */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-float, .animate-float-slow { animation: none; }
  html { scroll-behavior: auto; }
}
