/* =============================================
   PAGE OFFRIR — page-offrir.php (slug offrir)
   ---------------------------------------------
   Chargée uniquement sur cette page (rds_is_offrir_page(), inc/offrir.php),
   après style.css. L'introduction réutilise `.creations-intro` (style.css,
   partagée avec Créations et Nos Ateliers) : rien ne la restyle ici.
   Composition reprise de la page Services (section par offre, visuel dans
   un écrin à filet doré, alternance des fonds) et bande rose de fin de page
   comme `.sB__cta` et `.v1__cta`.

   ⚠️ LES VISUELS NE SONT JAMAIS RECADRÉS : `width: 100%; height: auto` sur
   l'image, aucun `aspect-ratio` ni `object-fit: cover` sur leur cadre. Ce sont
   des supports imprimés (montants, QR code, code d'inscription) : un rognage
   en retirerait des éléments.
   ⚠️ `#F5F2EE` est le fond photographique du chèque et de l'abonnement
   (marges mesurées entre #F4F1EB et #F9F5F2) : l'écrin le reprend pour
   qu'aucun rectangle plus clair ou plus foncé n'apparaisse autour de l'image,
   en particulier sur le fond de la deuxième offre (surface chaude depuis la
   variante B du 2026-11-10, rose avant). Ce n'est pas une couleur de la
   palette. Le recto du bon atelier, posé sur un blanc froid, y est ramené par
   fusion : voir son exception sous `.offre__img`.
   ============================================= */

.rds-offrir { background: var(--rds-fond); }

/* ─── SECTIONS D'OFFRE ─── */
/* `scroll-margin-top` : les ancres #cheques-cadeaux, #bon-cadeau-atelier et
   #abonnement-floral sont liées depuis l'accueil, Services et Nos Ateliers —
   le haut de la section doit arriver sous la barre fixe, pas dessous. */
.offre {
  padding: 5rem 3rem;
  border-bottom: 1px solid #2A1F1A12;
  scroll-margin-top: var(--header-height);
}
/* Rose équilibré (variante B, validée le 2026-11-10) : l'offre alternée passe
   sur la surface chaude ; le rose plein est réservé à la bande de contact de
   fin de page (`.offrir-contact`). */
.offre--alt { background: var(--rds-surface); }
.offre__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4.5rem; align-items: center;
}

/* Écrin du visuel — même filet que les cadres photo de Services. */
.offre__visuel {
  position: relative;
  background: #F5F2EE;
  border: 1px solid #C9A45873;
  border-radius: 6px;
  box-shadow:
    0 0 0 3px #FAF1EDFF,
    0 0 0 4px #C9A45833;
  overflow: hidden;
}
.offre__img { display: block; width: 100%; height: auto; }
/* Bon atelier — MÊME FOND que les deux autres écrins. Le recto est posé sur un
   blanc froid #F9FAF6 (mesuré sur ses lignes de bord), à ΔE ≈ 3 du #F5F2EE
   des deux autres : fusionné en `multiply` sur un écrin #FBF7F7
   (= #F5F2EE / #F9FAF6, canal par canal), ses marges ressortent en #F5F2EE.
   Même traitement que sa carte d'accueil (accueil.css) ; image non recadrée,
   fichier intact. Contrepartie : carte dessinée réchauffée d'environ 3 %.
   `isolation` borne la fusion à l'écrin. ⚠️ Valeurs propres au recto du
   2026-11-11 : un nouveau fichier les fait recalculer (contrôle par pixels
   dans tests/contenu/offrir.spec.mjs). Ancre stable par contrat. */
#bon-cadeau-atelier .offre__visuel { background: #FBF7F7; isolation: isolate; }
#bon-cadeau-atelier .offre__img { mix-blend-mode: multiply; }

.offre__titre {
  font-family: var(--rds-font-title); font-style: normal;
  font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 500;
  color: var(--rds-encre); line-height: 1.15; margin-bottom: 1.2rem;
}
.offre__intro { font-size: 1rem; color: var(--rds-taupe); line-height: 1.85; margin-bottom: 1.8rem; }
.offre__precision { font-size: 1rem; color: var(--rds-encre); line-height: 1.75; }

.offre__infos-titre {
  font-family: var(--rds-font-body); font-size: var(--rds-label-size); font-weight: 400;
  letter-spacing: var(--rds-label-tracking); text-transform: uppercase; line-height: 1.4;
  color: var(--rds-surtitre); margin-bottom: 0.4rem;
}
.offre__infos { list-style: none; }
.offre__infos li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.4rem;
  font-size: 1rem; color: var(--rds-encre); line-height: 1.6;
  border-bottom: 1px dashed #C9A45859;
}
.offre__infos li:last-child { border-bottom: 0; }
/* Pastille verte : objet graphique, seuil 3:1 — 4,04:1 sur le rose, davantage
   sur la surface chaude et le fond crème. */
.offre__infos li::before,
.modalites li::before {
  content: '';
  position: absolute; left: 0.25rem; top: 1.18rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rds-vert);
}
.offre__lien { margin-top: 1.8rem; }

/* ─── ABONNEMENT — formules et modalités ─── */
.abonnement { max-width: 1100px; margin: 4rem auto 0; }
.abonnement__titre {
  font-family: var(--rds-font-title); font-style: normal;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 500;
  color: var(--rds-encre); line-height: 1.2;
  text-align: center; margin-bottom: 1.8rem;
}

/* Quatre cartes STRICTEMENT identiques : aucune formule n'est mise en avant
   (ni couleur, ni taille, ni badge) — décision commerciale. */
.formules {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem; max-width: 820px; margin: 0 auto 4rem;
}
.formule {
  background: var(--rds-blanc);
  border: 1px solid #C9A45859;
  border-radius: 6px;
  box-shadow: 0 6px 22px #2A1F1A0D;
  padding: 1.7rem 1.5rem 1.5rem;
  text-align: center;
}
.formule__duree {
  font-family: var(--rds-font-title); font-style: normal;
  font-size: 1.6rem; font-weight: 500; color: var(--rds-encre); line-height: 1.2;
}
.formule__prix { display: flex; flex-direction: column; align-items: center; margin: 0.7rem 0 1.1rem; }
.formule__prix-libelle,
.formule__details dt {
  font-family: var(--rds-font-body); font-size: var(--rds-label-size); font-weight: 400;
  letter-spacing: var(--rds-label-tracking); text-transform: uppercase; line-height: 1.5;
  color: var(--rds-taupe);
}
.formule__montant {
  font-family: var(--rds-font-title); font-style: normal;
  font-size: 2.6rem; font-weight: 500; color: var(--rds-accent); line-height: 1.1;
}
.formule__details {
  display: flex; justify-content: center; gap: 1rem 2rem; flex-wrap: wrap;
  border-top: 1px dashed #C9A45859; padding-top: 0.9rem;
}
.formule__details div { display: flex; flex-direction: column; align-items: center; }
.formule__details dd { font-size: 1rem; font-weight: 400; color: var(--rds-encre); line-height: 1.5; }

.modalites {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem; max-width: 900px; margin: 0 auto;
}
.modalites li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.4rem;
  font-size: 0.92rem; color: var(--rds-taupe); line-height: 1.7;
  border-top: 1px dashed #C9A45859;
}
.modalites strong { font-weight: 400; color: var(--rds-encre); }

/* La livraison n'est JAMAIS comprise dans les tarifs : la mention est posée
   sous les modalités, à part, pour qu'elle ne se lise pas comme un détail. */
.abonnement__livraison {
  max-width: 640px; margin: 2.2rem auto 0;
  padding: 1rem 1.4rem;
  background: var(--rds-surface);
  border-radius: 6px;
  font-size: 1rem; color: var(--rds-encre); line-height: 1.7;
  text-align: center;
}

/* ─── CONTACT — bande rose de fin de page ─── */
.offrir-contact { background: var(--rds-rose-embleme); padding: 4rem 3rem; text-align: center; }
.offrir-contact__titre {
  font-family: var(--rds-font-title); font-style: normal;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 500;
  color: var(--rds-encre); line-height: 1.2; margin-bottom: 1rem;
}
.offrir-contact__texte {
  font-size: 1rem; color: var(--rds-taupe); line-height: 1.75;
  max-width: 620px; margin: 0 auto 2.2rem;
}
.offrir-contact__moyens {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem; max-width: 900px; margin: 0 auto;
}
.offrir-contact__moyen {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  height: 100%; padding: 1.5rem 1rem;
  background: var(--rds-fond);
  border: 1px solid #C9A45859;
  border-radius: 6px;
  transition: transform var(--rds-transition), box-shadow var(--rds-transition);
}
.offrir-contact__moyen:hover { transform: translateY(-3px); box-shadow: 0 10px 26px #2A1F1A14; }
.offrir-contact__moyen svg { width: 22px; height: 22px; color: var(--rds-accent); margin-bottom: 0.35rem; }
.offrir-contact__libelle {
  font-family: var(--rds-font-body); font-size: var(--rds-label-size); font-weight: 400;
  letter-spacing: var(--rds-label-tracking); text-transform: uppercase; line-height: 1.5;
  color: var(--rds-surtitre);
}
.offrir-contact__valeur {
  font-family: var(--rds-font-title); font-style: normal;
  font-size: 1.25rem; font-weight: 500; color: var(--rds-encre); line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .offrir-contact__moyen { transition: none; }
  .offrir-contact__moyen:hover { transform: none; }
}

/* ─── RESPONSIVE ─── */
/* Visuel à droite pour la deuxième offre, en deux colonnes seulement : en une
   colonne, chaque offre commence par son visuel. L'ordre du DOM ne change pas
   (le visuel ne contient rien de focalisable). */
@media (min-width: 901px) {
  .offre--inverse .offre__visuel { order: 2; }
}
@media (max-width: 900px) {
  .offre { padding: 3.5rem 1.5rem; }
  .offre__inner { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .offre__visuel { width: 100%; max-width: 560px; margin: 0 auto; }
  .abonnement { margin-top: 3rem; }
  .offrir-contact { padding: 3.25rem 1.5rem; }
  .offrir-contact__moyens { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}
@media (max-width: 560px) {
  .formules,
  .modalites { grid-template-columns: minmax(0, 1fr); }
  .formules { margin-bottom: 3rem; }
}
