/*--------------------------------------------------------------
# Page Remplacements (/remplacements)
# Mobile-first. Toutes les couleurs derivent des variables du
# theme definies dans css/style.css (--color-primary, etc.).
# Aucune couleur nouvelle n'est introduite ici.
--------------------------------------------------------------*/

.rmp {
  /* Fond teinte "couleur principale a ~10%".
     La 1re declaration sert de repli pour les navigateurs sans color-mix. */
  --rmp-tint: var(--color-primary-light);
  --rmp-tint: color-mix(in srgb, var(--color-primary) 10%, transparent);
  --rmp-radius-card: 24px;
  --rmp-shadow: var(--shadow-soft);
  --rmp-shadow-sm: 0 10px 24px rgba(31, 74, 80, 0.10);
  color: var(--color-muted);
}

/* Le header est fixe (64px) : on decale les ancres pour ne pas passer dessous. */
.rmp [id] {
  scroll-margin-top: 88px;
}

.rmp .rmp-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* style.css centre tous les titres du site : on repasse a gauche
   sur cette page, sauf pour l'en-tete de section volontairement centre. */
.rmp h1,
.rmp h2,
.rmp h3 {
  color: var(--color-secondary);
  font-family: "Montserrat", sans-serif;
  text-align: left;
}

/*--------------------------------------------------------------
# Elements partages
--------------------------------------------------------------*/

/* Sur-titre en majuscules */
.rmp-eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rmp-lead {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

/* Boutons : on part des composants du projet (.btn / .btn-primary)
   et on ne redefinit que les etats demandes par la maquette. */
.rmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.rmp-btn:hover,
.rmp-btn:focus {
  text-decoration: none;
}

.rmp-btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.rmp-btn-primary:hover,
.rmp-btn-primary:focus {
  opacity: 0.9; /* couleur principale a ~90% */
  color: #fff;
}

.rmp-btn-soft {
  background-color: #fff;
  color: var(--color-secondary);
  box-shadow: var(--rmp-shadow-sm);
}

.rmp-btn-soft:hover,
.rmp-btn-soft:focus {
  background-color: var(--rmp-tint); /* couleur principale a ~10% */
  color: var(--color-secondary);
}

.rmp-btn-white {
  background-color: #fff;
  color: var(--color-secondary);
}

.rmp-btn-white:hover,
.rmp-btn-white:focus {
  opacity: 0.9; /* blanc a ~90% */
  color: var(--color-secondary);
}

/* Lien texte avec chevron */
.rmp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.rmp-link:hover,
.rmp-link:focus {
  color: var(--color-primary);
  text-decoration: none;
}

.rmp-link i {
  transition: transform 160ms ease;
}

.rmp-link:hover i,
.rmp-link:focus i {
  transform: translateX(3px);
}

/* Liste a coches */
.rmp-checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.rmp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.rmp-checklist i {
  flex: none;
  margin-top: 2px;
  color: var(--color-primary);
  font-size: 16px;
}

/*--------------------------------------------------------------
# 1. Hero
--------------------------------------------------------------*/

.rmp-hero {
  background: var(--rmp-tint);
  padding: 48px 0 56px;
}

.rmp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.rmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--rmp-shadow-sm);
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 600;
}

.rmp-badge i {
  color: var(--color-primary);
  font-size: 15px;
}

.rmp-title {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
}

.rmp-title span {
  display: block;
}

.rmp-title .rmp-title-accent {
  color: var(--color-primary);
}

.rmp-hero .rmp-lead {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  margin-bottom: 28px;
}

.rmp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

/* 3 reperes sous les boutons */
.rmp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rmp-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 13px;
}

.rmp-facts i {
  color: var(--color-primary);
  font-size: 15px;
}

/* Visuels : carte desktop + maquette mobile en chevauchement */
.rmp-hero-visual {
  position: relative;
}

.rmp-visual-card {
  background: #fff;
  border-radius: var(--rmp-radius-card);
  box-shadow: var(--rmp-shadow);
  padding: 20px;
}

.rmp-visual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rmp-visual-label {
  display: block;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rmp-visual-title {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.rmp-visual-badge {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rmp-tint);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Visuel CVtheque : ratio 4:3, celui des images fournies (1448 x 1086).
   Le cadre epouse le ratio, l'image n'est donc jamais rognee. */
.rmp-visual-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #eef1f3;
}

.rmp-visual-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*--------------------------------------------------------------
# 2. Deux besoins, un meme espace
--------------------------------------------------------------*/

.rmp-needs {
  padding: 64px 0;
  background: #fff;
}

.rmp-section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.rmp-section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.rmp-needs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.rmp-need {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--rmp-radius-card);
}

.rmp-need-vet {
  background: var(--rmp-tint);
}

.rmp-need-clinic {
  background: #fff;
  box-shadow: var(--rmp-shadow);
}

.rmp-need-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  font-size: 24px;
}

.rmp-need-vet .rmp-need-icon {
  background: var(--color-primary);
  color: #fff;
}

.rmp-need-clinic .rmp-need-icon {
  background: var(--rmp-tint);
  color: var(--color-primary);
}

.rmp-need h3 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
}

.rmp-need > p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
}

/* L'image reste collee en bas pour que les 2 cartes s'alignent. */
.rmp-need-media {
  margin-top: auto;
  overflow: hidden;
  border-radius: 16px;
  background: #eef1f3;
}

/* Les deux visuels fournis sont en 4:3 (1448 x 1086) et portent du texte :
   le cadre suit leur ratio pour qu'aucun titre ne soit rogne. */
.rmp-need-media-vet,
.rmp-need-media-clinic {
  aspect-ratio: 4 / 3;
}

.rmp-need-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*--------------------------------------------------------------
# 3. Comment ca marche
--------------------------------------------------------------*/

.rmp-steps {
  padding: 64px 0;
  background: var(--color-bg-soft);
}

.rmp-steps-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.rmp-steps-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.rmp-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.rmp-step {
  padding: 32px;
  border-radius: var(--rmp-radius-card);
  background: #fff;
  box-shadow: var(--rmp-shadow-sm);
}

.rmp-step-num {
  display: block;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.rmp-step h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
}

.rmp-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# 4. Bandeau d'appel a l'action
--------------------------------------------------------------*/

.rmp-cta {
  padding: 0 0 72px;
  background: #fff;
}

.rmp-cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
}

.rmp-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.rmp-cta p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

.rmp-cta-action {
  justify-self: start;
}

/*--------------------------------------------------------------
# Tablette / desktop
--------------------------------------------------------------*/

@media (min-width: 768px) {
  .rmp-needs-grid,
  .rmp-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmp-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rmp-cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 48px;
  }

  .rmp-cta-action {
    justify-self: end;
  }
}

@media (min-width: 992px) {
  .rmp-hero {
    padding: 72px 0 88px;
  }

  .rmp-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
  }

  .rmp-hero-visual {
    padding-left: 40px;
  }

  .rmp-needs,
  .rmp-steps {
    padding: 88px 0;
  }

  .rmp-steps-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
  }

  .rmp-need {
    padding: 40px;
  }
}

/* Respect des preferences de mouvement reduit */
@media (prefers-reduced-motion: reduce) {
  .rmp-btn,
  .rmp-link i {
    transition: none;
  }

  .rmp-link:hover i,
  .rmp-link:focus i {
    transform: none;
  }
}
