/* 261027-101135 */
/* ==========================================================================
   Page « Codes promotionnels et offres du moment » — .ro-offres
   À ajouter dans la feuille de style du thème (comme .mon-nouvel-article).
   Tout est scopé sous .ro-offres : aucun impact sur le reste du site.
   ========================================================================== */

.ro-offres {
  --ro-yellow: #fded00;
  --ro-yellow-soft: #fffbd1;
  --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-offres * { box-sizing: border-box; }
.ro-offres h2, .ro-offres h3, .ro-offres p { margin: 0; }
.ro-offres a:focus-visible { outline: 2px solid var(--ro-aqua); outline-offset: 3px; border-radius: 6px; }

/* --- Introduction (sous le H1 de la page) ------------------------------------------------------------ */
.ro-offres .ro-intro { max-width: 760px; margin: 4px 0 28px; color: var(--ro-ink-soft); font-size: 17px; line-height: 1.6; }

/* --- Cartes avantages --------------------------------------------------- */
.ro-offres .ro-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ro-offres .ro-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; }
.ro-offres .ro-card { background: #fff; border: 1px solid var(--ro-line); }
.ro-offres .ro-card h2 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.ro-offres .ro-card p { line-height: 1.5; }

.ro-offres .ro-ticket {
  align-self: flex-start; padding: 8px 16px;
  border: 2px dashed var(--ro-ink); border-radius: 8px; background: var(--ro-yellow-soft);
  font-size: 18px; font-weight: 800; letter-spacing: 0.06em;
  user-select: all; cursor: text; /* un clic sélectionne tout le code */
}
.ro-offres .ro-fine { margin-top: auto; padding-top: 6px; color: var(--ro-ink-soft); font-size: 13px; line-height: 1.5; }

.ro-offres .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-offres .ro-card--code .ro-icon,
.ro-offres .ro-card--promo .ro-icon { background: var(--ro-yellow-soft); }

/* Lien texte dans une carte */
.ro-offres .ro-link { margin-top: auto; padding-top: 6px; color: var(--ro-teal) !important; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* --- Boutons ------------------------------------------------------------ */
.ro-offres .ro-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: auto; padding: 12px 20px; border-radius: 8px;
  font-weight: 700; text-decoration: none !important;
  transition: transform 0.15s ease;
}
.ro-offres .ro-btn:hover { transform: translateY(-1px); }
.ro-offres .ro-btn--yellow { background: var(--ro-yellow); color: var(--ro-ink) !important; }
.ro-offres .ro-btn--white  { background: #fff; color: var(--ro-teal) !important; }
.ro-offres .ro-btn--teal   { background: var(--ro-teal); color: #fff !important; }

/* --- Carte fidélité ----------------------------------------------------- */
.ro-offres .ro-fid {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  margin-top: 16px; padding: 24px; border-radius: 20px;
  background: var(--ro-teal); color: #fff;
}
.ro-offres .ro-fid img {
  display: block; width: 100%; max-width: 260px; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); transform: rotate(-3deg);
}
.ro-offres .ro-fid h2 { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.2; }
.ro-offres .ro-fid p { margin-top: 8px; color: rgba(255, 255, 255, 0.88); line-height: 1.55; }
.ro-offres .ro-fid .ro-btn { margin-top: 18px; }
.ro-offres .ro-chip { padding: 1px 8px; border-radius: 6px; background: var(--ro-yellow); color: var(--ro-ink); font-weight: 800; white-space: nowrap; }

/* --- Conditions des offres (texte discret, comme le texte SEO) -------- */
.ro-offres .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;
  scroll-margin-top: 120px;
}
.ro-offres .ro-conditions h2 { margin-bottom: 8px; color: var(--ro-ink); font-size: 15px; font-weight: 700; }
.ro-offres .ro-conditions p { margin-bottom: 6px; }
.ro-offres .ro-conditions strong { color: var(--ro-ink); font-weight: 700; }
.ro-offres .ro-conditions a { color: var(--ro-teal); font-weight: 700; }
.ro-offres .ro-conditions .ro-maj { margin-top: 10px; font-style: italic; }

/* --- Aide & texte SEO --------------------------------------------------- */
.ro-offres .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-offres .ro-help p { font-size: 17px; font-weight: 700; }
.ro-offres .ro-help p span { display: block; color: var(--ro-ink-soft); font-size: 14px; font-weight: 400; }
.ro-offres .ro-help .ro-btn { margin-top: 0; }
.ro-offres .ro-outro { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ro-line); color: var(--ro-ink-soft); font-size: 13px; line-height: 1.7; }

/* --- Responsive & accessibilité ----------------------------------------- */
@media (min-width: 768px) {
  .ro-offres .ro-fid { flex-direction: row; padding: 32px 40px; gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ro-offres .ro-btn { transition: none; }
}