/* ============================================================
   PetConnect — Landing page toilettage professionnel
   Palette: #023047 / #77BEC9 / #86EBF8 / #F8FAFC / #1F2937
   ============================================================ */

:root {
  --primary: #023047;
  --primary-700: #063a54;
  --secondary: #77bec9;
  --accent: #86ebf8;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #5b6b7c;
  --line: #e6edf3;

  --wa: #25d366;
  --wa-dark: #1eb658;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-xs: 0 1px 2px rgba(2, 48, 71, 0.05);
  --shadow-sm: 0 6px 18px rgba(2, 48, 71, 0.06);
  --shadow-md: 0 18px 40px rgba(2, 48, 71, 0.10);
  --shadow-lg: 0 34px 80px rgba(2, 48, 71, 0.18);

  --maxw: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  /* Themed base wash — soft aqua, never flat white */
  background:
    linear-gradient(180deg, #f5fbfc 0%, #eef7f9 34%, #f4fafc 68%, #eaf5f8 100%);
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Themed background: paw field + glows ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(780px 520px at 92% -10%, rgba(134, 235, 248, 0.30), transparent 60%),
    radial-gradient(720px 520px at -8% 20%, rgba(119, 190, 201, 0.22), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%23023047' fill-opacity='0.035'%3E%3Cg transform='translate(40 55) rotate(-18)'%3E%3Cellipse cx='0' cy='18' rx='17' ry='14'/%3E%3Cellipse cx='-17' cy='-8' rx='6.5' ry='9'/%3E%3Cellipse cx='0' cy='-15' rx='6.5' ry='9.5'/%3E%3Cellipse cx='17' cy='-8' rx='6.5' ry='9'/%3E%3C/g%3E%3Cg transform='translate(165 170) rotate(14)'%3E%3Cellipse cx='0' cy='18' rx='17' ry='14'/%3E%3Cellipse cx='-17' cy='-8' rx='6.5' ry='9'/%3E%3Cellipse cx='0' cy='-15' rx='6.5' ry='9.5'/%3E%3Cellipse cx='17' cy='-8' rx='6.5' ry='9'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 240px 240px;
}

/* ---------- Decorative floating shapes ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
}

.blob-1 {
  width: 460px;
  height: 460px;
  top: -120px;
  right: -90px;
  background: radial-gradient(circle at 30% 30%, rgba(134, 235, 248, 0.55), transparent 70%);
  animation: drift 16s ease-in-out infinite;
}

.blob-2 {
  width: 420px;
  height: 420px;
  bottom: 4%;
  left: -140px;
  background: radial-gradient(circle at 60% 40%, rgba(119, 190, 201, 0.45), transparent 70%);
  animation: drift 20s ease-in-out infinite reverse;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), rgba(134, 235, 248, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.6);
  opacity: 0.55;
}

.bubble-1 {
  width: 66px;
  height: 66px;
  top: 22%;
  right: 8%;
  animation: float 9s ease-in-out infinite;
}

.bubble-2 {
  width: 38px;
  height: 38px;
  top: 62%;
  right: 16%;
  animation: float 7s ease-in-out infinite 0.6s;
}

.bubble-3 {
  width: 26px;
  height: 26px;
  top: 48%;
  left: 6%;
  animation: float 8s ease-in-out infinite 1.2s;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(24px, 28px) scale(1.06);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(2, 48, 71, 0.08);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.header-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(134, 235, 248, 0.32);
  border: 1px solid rgba(2, 48, 71, 0.08);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header-cta:hover {
  transform: translateY(-2px);
  background: rgba(134, 235, 248, 0.55);
  box-shadow: var(--shadow-sm);
}

.header-cta:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 60px 0 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(134, 235, 248, 0.4);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  color: var(--primary);
  max-width: 16ch;
}

.hero-subtitle {
  margin: 20px 0 28px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 48ch;
}

.benefits {
  display: grid;
  gap: 13px;
  margin-bottom: 38px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}

.benefit-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: var(--shadow-xs);
}

.benefit-icon svg {
  width: 16px;
  height: 16px;
}

/* Floating catalogue visual (transparent PNG — no box) */
.hero-visual {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.hero-visual::before {
  /* soft glow pad behind the catalogue */
  content: "";
  position: absolute;
  inset: 6% 8% 4% 8%;
  background: radial-gradient(closest-side, rgba(134, 235, 248, 0.55), transparent 78%);
  filter: blur(26px);
  z-index: -1;
}

.hero-catalogue {
  width: min(520px, 100%);
  height: auto;
  filter: drop-shadow(0 34px 42px rgba(2, 48, 71, 0.24));
  animation: catFloat 7s ease-in-out infinite;
}

@keyframes catFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(-0.6deg);
  }
}

.hero-badge {
  position: absolute;
  right: 4%;
  bottom: 8%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.hero-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ============================================================
   LEAD FORM (right column)
   ============================================================ */
.hero-form {
  position: relative;
}

.lead-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.lead-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.lead-head {
  text-align: center;
  margin-bottom: 26px;
}

.lead-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(119, 190, 201, 0.18);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lead-tag svg {
  width: 15px;
  height: 15px;
}

.lead-title {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--primary);
  max-width: 22ch;
  margin-inline: auto;
}

.lead-subtitle {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 44ch;
}

/* Fields */
.lead-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.req {
  color: var(--wa-dark);
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field input::placeholder {
  color: #9aa8b5;
}

.field input:hover {
  border-color: #cdd9e2;
}

.field input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(119, 190, 201, 0.22);
}

.field.invalid input {
  border-color: #e5484d;
  background: #fff6f6;
}

.field.invalid input:focus {
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.18);
}

.error {
  margin: 0;
  min-height: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #d33a3f;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.field.invalid .error {
  opacity: 1;
  transform: translateY(0);
}

/* Submit button (green / WhatsApp) */
.btn-submit {
  position: relative;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: #ffffff;
  padding: 17px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  margin-top: 4px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
  filter: brightness(1.03);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.btn-submit[disabled] {
  cursor: not-allowed;
  opacity: 0.92;
  transform: none;
}

.btn-submit.loading .btn-label {
  visibility: hidden;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .spinner {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.form-note svg {
  width: 15px;
  height: 15px;
  color: var(--secondary);
}

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.success {
  text-align: center;
  padding: 6px 4px;
  animation: rise 0.5s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.34);
  animation: pop 0.5s var(--ease) both;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }

  60% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}

.success-title:focus {
  outline: none;
}

.success-message {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 46ch;
  margin: 0 auto 14px;
}

.success-signature {
  color: var(--text);
  font-size: 0.98rem;
  margin: 18px auto 24px;
}

.success-signature strong {
  color: var(--primary);
  font-family: var(--font-display);
}

.btn-petconnect {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #ffffff;
  padding: 15px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(2, 48, 71, 0.34);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-petconnect:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(2, 48, 71, 0.44);
}

.btn-petconnect:active {
  transform: translateY(0);
}

.btn-petconnect:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.btn-petconnect .btn-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cta-note {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  background: var(--primary);
  padding: 12px 0 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.96;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: 0.12s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .benefits {
    display: inline-grid;
    text-align: left;
  }

  .hero-visual {
    margin: 8px auto 0;
  }

  .hero-catalogue {
    width: min(440px, 86%);
    margin-inline: auto;
  }

  .hero-form {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .container {
    padding-inline: 18px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 30px 0 44px;
  }

  .lead-card {
    padding: 26px 20px;
    border-radius: var(--radius);
  }

  .bubble,
  .blob-2 {
    display: none;
  }

  .footer-inner {
    justify-content: space-between;
    text-align: center;
  }

   .header-inner {
    justify-content: center;
  }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}