*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0e0e0d;
  --stone: #2a2825;
  --warm-grey: #6b6560;
  --ash: #b8b0a8;
  --cream: #f5f2ee;
  --paper: #faf8f5;
  --white: #ffffff;
  --accent: #c8a96e;
  --accent-dim: rgba(200, 169, 110, 0.15);
  --border: rgba(42, 40, 37, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: default;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--warm-grey);
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 2px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 80px 80px;
  position: relative;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 6vw, 86px);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.hero-title em {
  font-style: italic;
  color: var(--warm-grey);
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: var(--warm-grey);
  margin-bottom: 48px;
  line-height: 1.5;
  max-width: 400px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--warm-grey);
  max-width: 360px;
  margin-bottom: 56px;
}

/* EMAIL FORM */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
}

.signup-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}

.signup-label-light {
  color: rgba(255, 255, 255, 0.4);
}

.signup-input-row {
  display: flex;
  border: 1px solid rgba(42, 40, 37, 0.25);
  background: var(--white);
  transition: border-color 0.3s;
}

.signup-input-row:focus-within {
  border-color: var(--accent);
}

.signup-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.signup-input::placeholder {
  color: var(--ash);
}

.signup-btn {
  border: none;
  background: var(--ink);
  color: var(--cream);
  padding: 16px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.signup-btn:hover {
  background: var(--accent);
}

.signup-note {
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.02em;
}

.signup-note-light {
  color: rgba(255, 255, 255, 0.25);
}

/* HERO RIGHT */
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-img-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.hero-img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: saturate(0.7) brightness(0.96);
}

.hero-img-grid img:hover {
  transform: scale(1.04);
  filter: saturate(0.9) brightness(1);
}

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 80px;
  margin: 80px 0 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-text {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

/* PRODUCTS */
.products {
  padding: 80px 80px 120px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.products-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  max-width: 360px;
}

.products-note {
  font-size: 13px;
  color: var(--warm-grey);
  max-width: 260px;
  line-height: 1.7;
  text-align: right;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* PRODUCT CARD */
.product-card {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s;
  pointer-events: none;
  z-index: 2;
}

.product-card:hover::after {
  border-color: var(--accent);
}

.product-visual {
  height: clamp(220px, 28vw, 420px);
  overflow: hidden;
  position: relative;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter 0.6s;
  filter: saturate(0.65) brightness(0.98);
}

.product-card:hover .product-visual img {
  transform: scale(1.06);
  filter: saturate(0.85) brightness(1);
}

/* Collar App & Social — cover comme la carte 1, cadrage centré sur le téléphone */
.product-card.app-card .product-visual,
.product-card.social-card .product-visual {
  background: var(--cream);
  padding: 0;
}

.product-card.app-card .product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.65) brightness(0.98);
}

.product-card.social-card .product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.65) brightness(0.98);
}

.product-card.app-card:hover .product-visual img,
.product-card.social-card:hover .product-visual img {
  transform: scale(1.06);
  filter: saturate(0.85) brightness(1);
}

.product-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--paper);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  padding: 6px 12px;
  z-index: 2;
}

.product-info {
  padding: 28px 28px 32px;
  border-top: 1px solid var(--border);
}

.product-number {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--ash);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--ink);
}

.product-desc {
  font-size: 13px;
  color: var(--warm-grey);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* BOTTOM */
.bottom {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.bottom-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
}

.bottom-text h2 em {
  font-style: italic;
  color: var(--accent);
}

.bottom-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ash);
  max-width: 380px;
}

.bottom-form .signup-input-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.bottom-form .signup-input {
  color: var(--cream);
}

.bottom-form .signup-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.bottom-form .signup-btn {
  background: var(--accent);
  color: var(--ink);
}

.bottom-form .signup-btn:hover {
  background: var(--cream);
}

.bottom-form .signup-note {
  color: rgba(255, 255, 255, 0.3);
}

/* FOOTER */
footer {
  background: var(--stone);
  padding: 32px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(184, 176, 168, 0.4);
  text-transform: uppercase;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SUCCESS STATE */
.signup-success {
  display: none;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 16px 0;
}

/* =============================================
   RESPONSIVE — 4 breakpoints
   > 1200px   : grand écran (défaut)
   1000-1200px: laptop fenêtre réduite
   600-1000px : tablette / petite fenêtre
   < 600px    : mobile
   ============================================= */

/* Laptop — fenêtre réduite (1000–1200px) */
@media (max-width: 1200px) {
  .hero-left {
    padding: 60px 36px 60px 56px;
  }

  .products {
    padding: 60px 56px 100px;
  }

  .bottom {
    padding: 80px 56px;
    gap: 56px;
  }

  footer {
    padding: 28px 56px;
  }

  .divider {
    padding: 0 56px;
  }
}

/* Tablette / petite fenêtre (600–1000px) */
@media (max-width: 1000px) {
  /* Hero : empile texte puis image */
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero-left {
    padding: 80px 40px 56px;
  }

  /* Grille 4 images : on passe en bandeau horizontal 4 colonnes */
  .hero-right {
    height: 42vw;
    min-height: 200px;
  }

  .hero-img-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }

  /* Produits : 2 colonnes + 3e pleine largeur */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card:last-child {
    grid-column: 1 / -1;
  }

  .product-visual {
    height: clamp(200px, 30vw, 340px);
  }

  .products {
    padding: 56px 40px 80px;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .products-note {
    text-align: left;
    max-width: 100%;
  }

  nav {
    padding: 18px 40px;
  }

  .bottom {
    grid-template-columns: 1fr;
    padding: 64px 40px;
    gap: 40px;
  }

  footer {
    padding: 24px 40px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .divider {
    padding: 0 40px;
    margin: 56px 0 0;
  }
}

/* Mobile (< 600px) */
@media (max-width: 600px) {
  nav {
    padding: 16px 20px;
  }

  .nav-badge {
    font-size: 9px;
    padding: 5px 10px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 72px 20px 40px;
  }

  .hero-desc {
    font-size: 14px;
  }

  /* Grille mobile : layout naturel, pas de hauteur fixe imposée */
  .hero-right {
    height: auto;
    min-height: unset;
  }

  /* Sortir du mode absolute pour laisser les images respirer */
  .hero-img-grid {
    position: relative;
    inset: unset;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
  }

  /* Toutes les images : carrées, objet entier visible */
  .hero-img-grid img {
    width: 100%;
    height: 46vw;       /* carré approximatif sur mobile */
    object-fit: cover;
  }

  /* Recadrage précis par image */
  .hero-img-grid img:nth-child(1) {
    object-position: 40% 25%;   /* chat : focus visage */
  }

  .hero-img-grid img:nth-child(2) {
    object-position: 55% 35%;   /* chien : focus visage */
  }

  .hero-img-grid img:nth-child(3) {
    object-position: 50% 60%;   /* tracker : centré */
    display: block;
  }

  .hero-img-grid img:nth-child(4) {
    object-position: 60% 40%;   /* chat endormi */
    display: block;
  }

  /* Formulaire pleine largeur */
  .signup-form {
    max-width: 100%;
  }

  .signup-input-row {
    flex-direction: column;
  }

  .signup-btn {
    padding: 14px;
    text-align: center;
  }

  /* Produits : 1 colonne */
  .products {
    padding: 40px 20px 60px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card:last-child {
    grid-column: unset;
  }

  .product-visual {
    height: 56vw;
    min-height: 200px;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  .bottom {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 36px;
  }

  .bottom-form .signup-input-row {
    flex-direction: column;
  }

  footer {
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .divider {
    padding: 0 20px;
    margin: 40px 0 0;
  }
}