/* 261027-101137 */
/* ==========================================================================
   Page « Carte de fidélité Elsie Santé » — .ro-fidelite
   À ajouter dans la feuille de style du thème.
   Tout est scopé sous .ro-fidelite : aucun impact sur le reste du site.
   ========================================================================== */

.ro-fidelite {
  --ro-yellow: #fded00;
  --ro-teal: #035f6d;
  --ro-aqua: #00a3a6;
  --ro-tint: #eef8f8;
  --ro-ink: #111;
  --ro-ink-soft: #55666b;
  --ro-line: #e4ecee;
  color: var(--ro-ink);
  font-family: inherit;
}
.ro-fidelite * { box-sizing: border-box; }
.ro-fidelite h2, .ro-fidelite h3, .ro-fidelite p, .ro-fidelite ol { margin: 0; }
.ro-fidelite a:focus-visible { outline: 2px solid var(--ro-aqua); outline-offset: 3px; border-radius: 6px; }

/* --- Titres de section -------------------------------------------------- */
.ro-fidelite .ro-section { margin-top: 56px; }
.ro-fidelite .ro-section  h2 { margin-bottom: 20px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }

/* --- Boutons et liens --------------------------------------------------- */
.ro-fidelite .ro-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px;
  font-weight: 700; text-decoration: none !important;
  transition: transform 0.15s ease;
}
.ro-fidelite .ro-btn:hover { transform: translateY(-1px); }
.ro-fidelite .ro-btn--white { background: #fff; color: var(--ro-teal) !important; }
.ro-fidelite .ro-btn--teal  { background: var(--ro-teal); color: #fff !important; }
.ro-fidelite .ro-link { color: var(--ro-teal) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* --- Hero --------------------------------------------------------------- */
.ro-fidelite .ro-hero {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 28px 24px; border-radius: 20px;
  background: var(--ro-teal); color: #fff;
}
.ro-fidelite .ro-hero img {
  display: block; width: 100%; max-width: 320px; height: auto; border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); transform: rotate(-3deg);
}
.ro-fidelite .ro-hero h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.ro-fidelite .ro-hero p { margin-top: 12px; color: rgba(255, 255, 255, 0.88); font-size: 16px; line-height: 1.6; }
.ro-fidelite .ro-hero .ro-btn { margin-top: 22px; }
.ro-fidelite .ro-chip { padding: 1px 8px; border-radius: 6px; background: var(--ro-yellow); color: var(--ro-ink); font-weight: 800; white-space: nowrap; }

/* --- Encart « Bon à savoir » -------------------------------------------- */
.ro-fidelite .ro-callout {
  margin-top: 16px; padding: 18px 22px;
  border-left: 4px solid var(--ro-teal); border-radius: 14px; background: var(--ro-tint);
  line-height: 1.6;
}
.ro-fidelite .ro-callout strong:first-child { display: block; margin-bottom: 4px; color: var(--ro-teal); }

/* --- Cartes ------------------------------------------------------------- */
.ro-fidelite .ro-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ro-fidelite .ro-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ro-fidelite .ro-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border: 1px solid var(--ro-line); border-radius: 20px; background: #fff;
}
.ro-fidelite .ro-card h3 { font-size: 19px; font-weight: 800; line-height: 1.25; }
.ro-fidelite .ro-card p { line-height: 1.55; }
.ro-fidelite .ro-card .ro-btn, .ro-fidelite .ro-card .ro-link { align-self: flex-start; margin-top: auto; }
.ro-fidelite .ro-card .ro-btn + .ro-link { margin-top: 4px; }
.ro-fidelite .ro-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--ro-tint); font-size: 24px; line-height: 1;
}
.ro-fidelite .ro-hl { color: var(--ro-teal); font-weight: 800; }
.ro-fidelite .ro-fine { margin-top: 12px; color: var(--ro-ink-soft); font-size: 13px; line-height: 1.55; }

/* --- Étapes numérotées -------------------------------------------------- */
.ro-fidelite .ro-steps { counter-reset: ro-step; padding: 0; list-style: none; }
.ro-fidelite .ro-steps li {
  counter-increment: ro-step; position: relative;
  min-height: 28px; margin-bottom: 12px; padding-left: 40px; line-height: 1.55;
}
.ro-fidelite .ro-steps li:last-child { margin-bottom: 0; }
.ro-fidelite .ro-steps li::before {
  content: counter(ro-step); position: absolute; top: -1px; left: 0;
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--ro-tint); color: var(--ro-teal);
  font-size: 14px; font-weight: 800;
}
.ro-fidelite .ro-steps a { color: var(--ro-teal); font-weight: 700; }
.ro-fidelite .ro-cta { margin-top: 20px; text-align: center; }

/* --- Elsie Baby --------------------------------------------------------- */
.ro-fidelite .ro-baby { padding: 28px 24px; border-radius: 20px; background: var(--ro-tint); }
.ro-fidelite .ro-badge {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  border-radius: 6px; background: var(--ro-teal); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.ro-fidelite .ro-baby h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1.2; }
.ro-fidelite .ro-baby  p { max-width: 720px; margin-top: 10px; line-height: 1.6; }
.ro-fidelite .ro-gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
.ro-fidelite .ro-gallery img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.ro-fidelite .ro-baby .ro-card { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 24px; }
.ro-fidelite .ro-baby .ro-card .ro-btn { margin-top: 0; }

/* --- Aide --------------------------------------------------------------- */
.ro-fidelite .ro-help {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding: 20px 24px; border-radius: 20px; background: var(--ro-tint);
}
.ro-fidelite .ro-help p { font-size: 17px; font-weight: 700; }
.ro-fidelite .ro-help p span { display: block; color: var(--ro-ink-soft); font-size: 14px; font-weight: 400; }

/* --- Conditions (texte discret) ----------------------------------------- */
.ro-fidelite .ro-conditions {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ro-line);
  color: var(--ro-ink-soft); font-size: 13px; line-height: 1.7;
}
.ro-fidelite .ro-conditions h2 { margin-bottom: 8px; color: var(--ro-ink); font-size: 15px; font-weight: 700; }
.ro-fidelite .ro-conditions p { margin-bottom: 6px; }
.ro-fidelite .ro-conditions strong { color: var(--ro-ink); }
.ro-fidelite .ro-conditions a { color: var(--ro-teal); font-weight: 700; }

/* --- Responsive & accessibilité ----------------------------------------- */
@media (min-width: 768px) {
  .ro-fidelite .ro-hero { flex-direction: row; padding: 40px 48px; gap: 48px; }
  .ro-fidelite .ro-hero img { flex-shrink: 0; width: 320px; }
  .ro-fidelite .ro-baby { padding: 36px 40px; }
  .ro-fidelite .ro-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ro-fidelite .ro-btn { transition: none; }
}