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

:root {
  --page-gutter: clamp(1.5rem, 6vw, 4rem);
  --page-max: 60rem;
}

html {
  overflow-x: clip;
}

.wrap {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(calc(100% - 2 * var(--page-gutter)), 76rem);
  margin-inline: auto;
}

.brand-mark {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: #f4f7f9;
  background-image: url("../img/favicon.png");
  background-size: 36px;
  background-repeat: no-repeat;
  background-position: center;
  font-weight: 800;
  color: #74C947;
}
.brand-mark p {
  visibility: hidden;
  margin: 0;
}
/* ----------------------------------------------------------------
   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; }

.nav-desktop,
.nav-cta {
  display: none;
}
.nav-cta {
  margin-block: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(116, 201, 71, 0.25);
}
.nav-cta-mobile {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-block: 0.75rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  #menu-toggle,
  #mobile-menu {
    display: none !important;
  }
}

/* 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-visual {
  width: 100%;
  padding: 0.5rem 0.25rem 2.75rem;
}
.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: 0.25rem;
  left: 0.25rem;
  width: 28%;
  max-width: 150px;
  min-width: 92px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(13, 42, 74, 0.3);
}

@media (min-width: 768px) {
  .hero-visual { padding: 1rem 0 2rem; }
  .hero-phone-img { left: -0.5rem; bottom: -0.5rem; width: 30%; }
}

/* BADGE flottant prix */
.badge-float {
  position: absolute;
  top: 0.5rem;
  right: 0.25rem;
  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);
}

@media (min-width: 640px) {
  .badge-float { top: -0.25rem; right: 0; }
}

/* ----------------------------------------------------------------
   OFFRE / TARIFS — bloc centré, pas collé aux bords
   ---------------------------------------------------------------- */
.pricing-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 3.25rem 0 3.75rem;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(116, 201, 71, 0.28), transparent 55%),
    #0D2A4A;
  overflow: hidden;
}
.pricing-section .wrap {
  width: min(calc(100% - 2 * var(--page-gutter)), 46rem);
}
@media (min-width: 768px) {
  .pricing-section {
    padding: 4rem 0 4.5rem;
  }
}
.wrap-narrow {
  --page-max: 40rem;
}
.pricing-intro {
  text-align: center;
  margin-bottom: 2.25rem;
}
.pricing-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: rgba(116, 201, 71, 0.18);
  color: #74C947;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pricing-offers {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .pricing-offers {
    grid-template-columns: 1fr 1.12fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 1.75rem 1.6rem 1.5rem;
  border: 1px solid #eef2f6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
}
.price-card-featured {
  border: 2px solid #74C947;
  box-shadow: 0 22px 50px rgba(116, 201, 71, 0.28);
  padding-top: 2.25rem;
}
@media (min-width: 768px) {
  .price-card-featured {
    transform: translateY(-10px);
  }
  .price-card-featured:hover {
    transform: translateY(-14px);
  }
}
.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 9999px;
  background: #74C947;
  color: #fff;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.price-plan {
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  margin: 0;
}
.price-card-featured .price-plan {
  color: #4a9e2e;
}
.price-amount {
  margin: 0.65rem 0 0;
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0D2A4A;
}
.price-amount span {
  margin-left: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #94a3b8;
}
.price-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
}
.price-perks {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 auto;
}
.price-perks li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0D2A4A;
}
.price-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #74C947;
}
.price-card > a {
  margin-top: 1.5rem;
}
.price-devis {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  color: #e2e8f0;
}
.price-devis h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.price-devis p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.price-devis .btn-secondary {
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .price-devis {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 1.75rem;
  }
  .price-devis p { max-width: 36rem; }
}

/* ----------------------------------------------------------------
   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;
  gap: 0.75rem;
  min-height: 4.5rem;
  background-color: #F8FAFC;
  border-radius: 20px;
  padding: 1.25rem 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;
  white-space: nowrap;
}

/* ----------------------------------------------------------------
   TIMELINE
   ---------------------------------------------------------------- */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.timeline-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 1.25rem 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;
}
@media (min-width: 768px) {
  .timeline-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
  }
  .timeline-arrow {
    display: none;
  }
  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    height: 100%;
  }
}

/* ----------------------------------------------------------------
   FORMULAIRE
   ---------------------------------------------------------------- */
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0D2A4A;
}
.form-input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background-color: #F8FAFC;
  color: #0D2A4A;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D2A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}
textarea.form-input {
  min-height: 7rem;
}
.form-input:focus {
  outline: none;
  border-color: #74C947;
  box-shadow: 0 0 0 3px rgba(116, 201, 71, 0.2);
  background-color: #ffffff;
}

.form-feedback {
  grid-column: 1 / -1;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-feedback[data-type="success"] {
  background: rgba(116, 201, 71, 0.12);
  color: #3d7a22;
}
.form-feedback[data-type="error"] {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}
.btn-submit {
  position: relative;
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.btn-loader {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 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; }

/* ----------------------------------------------------------------
   PAGES LÉGALES
   ---------------------------------------------------------------- */
.legal-main {
  padding: 8rem 0 4.5rem;
}
.legal-content {
  max-width: 42rem;
}
.legal-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.legal-content .legal-updated {
  margin: 0.75rem 0 2rem;
  font-size: 0.9rem;
  color: #64748b;
}
.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
}
.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}
.legal-content p + p {
  margin-top: 0.85rem;
}
.legal-content ul {
  margin: 0.6rem 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.legal-content a {
  color: #4a9e2e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----------------------------------------------------------------
   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; }
}
