/* ═══════════════════════════════════════════════════════════════
 *  Page Prestations — macq-laboutik.fr
 *
 *  Reproduction fidèle de la prod (post-366) avec :
 *  - Charte typo unifiée (Anton + Poppins, jamais Roboto)
 *  - Palette harmonisée sur le rose primaire #D82D77
 *  - Responsive natif (le slider est masqué <1025px comme sur la prod)
 *
 *  Structure :
 *  1. Hero titre + divider "NOS PRESTATIONS"
 *  2. Zone slider Revolution (shortcode)
 *  3. Contenu éditorial optionnel (the_content)
 * ═══════════════════════════════════════════════════════════════ */

.prestations-page {
  background: var(--color-surface, #FFFFFF);
}

/* ─── HERO TITRE ──────────────────────────────────────────────── */

/* Aligné sur le pattern hero des pages Blog et Contact :
 * fond rose pâle #FBF0F3, titre rose primary en Poppins regular.
 *
 * Spec spécifique Prestations : le titre doit tenir sur UNE seule ligne
 * sur desktop ("Vente de fleurs et décoration d'espace" ≈ 38 caractères).
 * Donc max-width élargi à 1400px et font-size capped à 4rem.
 */
.prestations-hero {
  background: var(--color-pink-pale, #FBF0F3);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.prestations-hero__inner {
  /* max-width retiré v1.5.13 (edge-to-edge) */
  max-width: none;
  margin-inline: auto;
}

.prestations-hero__title {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: clamp(1.875rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin: 0;
  text-wrap: balance;
}

/* ─── DIVIDER "NOS PRESTATIONS" — section indépendante ────────── */

/* Plus dans le hero : section autonome qui sert de transition
 * visuelle entre le hero (fond rose pâle) et le slider (fond blanc).
 * Padding vertical plus modeste que le hero pour ne pas surcharger.
 */
.prestations-divider {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.prestations-divider__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  max-width: 720px;
  margin-inline: auto;
}

.prestations-divider__line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(0 0 0 / 0.25) 50%,
    rgb(0 0 0 / 0.25) 100%
  );
  max-width: 200px;
}

.prestations-divider__line:last-child {
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 0.25) 0%,
    rgb(0 0 0 / 0.25) 50%,
    transparent 100%
  );
}

.prestations-divider__label {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ─── ZONE SLIDER ─────────────────────────────────────────────── */

.prestations-slider {
  /*
   * v1.5.22 : visible sur tous les devices (avant : masqué <1025px,
   * héritage de la config Elementor d'origine `elementor-hidden-tablet`).
   *
   * Trade-offs assumés :
   *  - Slider Revolution embarque GSAP (~200kB JS) qui s'initialise sur
   *    mobile aussi → impact LCP sur 4G. Côté admin, vérifier que le
   *    "Lazy Load" est activé dans Slider Revolution → Settings → Performance.
   *  - Le rendu mobile dépend de la config Slider Revolution :
   *    Settings → Responsive → activer les breakpoints tablet/mobile et
   *    régler la hauteur du slider en conséquence.
   *  - overflow: hidden sur __inner empêche les animations Rev Slider de
   *    déborder horizontalement (sécurité contre les scroll horizontaux).
   */
  padding-inline: clamp(1rem, 4vw, 3rem);
  padding-block: 0 clamp(2.5rem, 6vw, 5rem);
}

.prestations-slider__inner {
  /* max-width retiré v1.5.13 (edge-to-edge) */
  max-width: none;
  margin-inline: auto;
  /* Évite tout débordement horizontal des animations Rev Slider */
  overflow: hidden;
}

/*
 * Tablette portrait basse résolution : on cadre la largeur pour éviter
 * que Rev Slider ne pousse au-delà du viewport (il a tendance à utiliser
 * width: 100vw en interne sur certaines configs).
 */
@media (min-width: 1025px) and (max-width: 1199px) {
  .prestations-slider__inner {
    max-width: 100%;
  }
}

/* ─── CONTENU EDITORIAL OPTIONNEL ─────────────────────────────── */

.prestations-content {
  padding-inline: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.prestations-content__inner {
  max-width: 720px;
  margin-inline: auto;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-ink);
}

.prestations-content__inner p {
  margin: 0 0 1.5em;
  text-wrap: pretty;
}

.prestations-content__inner h2 {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 2.5em 0 1em;
  text-wrap: balance;
}

.prestations-content__inner h3 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: var(--color-ink);
  margin: 2em 0 0.75em;
}

.prestations-content__inner a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--dur-fast) var(--ease-out);
}

.prestations-content__inner a:hover,
.prestations-content__inner a:focus-visible {
  text-decoration-thickness: 2px;
}

.prestations-content__inner ul,
.prestations-content__inner ol {
  margin: 1em 0 1.5em;
  padding-left: 1.25rem;
}

.prestations-content__inner ul li {
  list-style: none;
  position: relative;
  margin-bottom: 0.5em;
}

.prestations-content__inner ul li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
}

/* ─── REDUCED MOTION ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .prestations-content__inner a {
    transition: none;
  }
}
