/* ==========================================================================
   Blocs d'enrichissement SEO / CRO (pages locales, etc.)
   Chargé uniquement sur les pages qui les utilisent.
   ========================================================================== */

/* Preuve sociale sous le bouton du hero */
.aiw-hero-proof {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.9rem;
  margin: 1rem 0 0; font-size: 0.92rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.aiw-hero-proof a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.aiw-hero-proof__stars { color: #f5c04a; letter-spacing: 0.1em; }
.aiw-hero-proof__sep { opacity: 0.7; }

/* Encadré définition (« Une wedding planner est… ») */
.aiw-definition {
  margin: 2.2rem 0; padding: 1.4rem 1.5rem 1.2rem;
  background: var(--demo-bg-card); border-left: 4px solid var(--demo-accent-2); border-radius: var(--radius);
}
.aiw-prose .aiw-definition h2 { margin-top: 0; font-size: clamp(1.4rem, 2.6vw, 1.7rem); }
.aiw-definition p:last-child { margin-bottom: 0; }

/* Tableau comparatif */
.aiw-table-wrap { margin: 1.25rem 0 1.5rem; }
.aiw-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--demo-bg); }
.aiw-table caption { caption-side: top; text-align: left; font-size: 0.85rem; color: var(--demo-muted); padding-bottom: 0.5rem; }
.aiw-table th, .aiw-table td { padding: 0.85rem 1rem; border: 1px solid var(--demo-border); vertical-align: top; text-align: left; }
.aiw-table thead th { background: var(--demo-mint); color: var(--demo-ink); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.aiw-table tbody th { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--demo-brown); width: 26%; }
.aiw-table tbody th a { color: var(--demo-link); }
/* Mobile / petite tablette : chaque formule devient une carte pleine largeur */
@media (max-width: 760px) {
  .aiw-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .aiw-table, .aiw-table caption, .aiw-table tbody, .aiw-table tr, .aiw-table th, .aiw-table td { display: block; width: auto; }
  .aiw-table { background: transparent; }
  .aiw-table caption { padding: 0 0 0.6rem; }
  .aiw-table tr {
    background: var(--demo-bg); border: 1px solid var(--demo-border); border-radius: var(--radius);
    margin-bottom: 1rem; overflow: hidden; box-shadow: 0 6px 18px rgba(74,58,46,0.06);
  }
  .aiw-table th, .aiw-table td { border: 0; padding: 0.7rem 1.1rem; }
  .aiw-table tbody th { width: auto; background: var(--demo-mint); padding: 0.85rem 1.1rem; font-size: 1.3rem; line-height: 1.25; }
  .aiw-table td + td { border-top: 1px solid var(--demo-border); }
  .aiw-table td::before { content: attr(data-label); display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--demo-muted); margin-bottom: 0.2rem; }
}

/* CTA intermédiaire */
.aiw-inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.25rem;
  margin: 1.75rem 0 0.5rem; padding: 1.1rem 1.3rem;
  border: 1px solid var(--demo-border); border-radius: var(--radius); background: var(--demo-bg);
  box-shadow: 0 8px 24px rgba(74,58,46,0.06);
}
.aiw-prose .aiw-inline-cta p { margin: 0; flex: 1 1 260px; color: var(--demo-ink); }
.aiw-inline-cta .demo-btn { flex: none; }

/* Étapes numérotées */
.aiw-steps { list-style: none; counter-reset: aiwstep; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.aiw-steps li {
  counter-increment: aiwstep; position: relative; padding: 1.1rem 1.2rem 1.1rem 4.2rem;
  background: var(--demo-bg); border: 1px solid var(--demo-border); border-radius: var(--radius);
}
.aiw-steps li::before {
  content: counter(aiwstep); position: absolute; left: 1.1rem; top: 1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--demo-cta); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
}
.aiw-steps strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--demo-brown); margin-bottom: 0.15rem; }
@media (min-width: 900px) { .aiw-steps--4 { grid-template-columns: repeat(2, 1fr); } }

/* Lien « voir plus » centré sous une galerie */
.aiw-more-link { text-align: center; margin: 1.5rem 0 0; }
.aiw-more-link a { color: var(--demo-link); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Ligne secondaire du bandeau CTA (téléphone) */
.aiw-cta-band__alt { margin: 1rem 0 0; color: #fff; font-size: 0.95rem; }
.aiw-cta-band__alt a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.aiw-cta-band__reassure { margin: 0.6rem 0 0; color: #fff; opacity: 0.92; font-size: 0.85rem; }
.aiw-cta-band p.aiw-cta-band__alt, .aiw-cta-band p.aiw-cta-band__alt a { color: #fff; }
.aiw-cta-band p.aiw-cta-band__alt { margin-top: 1.4rem; }

/* Lexique (liste de définitions) */
.aiw-glossary { margin: 1.2rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--demo-border); }
.aiw-glossary dt { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--demo-brown); }
.aiw-glossary dd { margin: 0.1rem 0 0.8rem; color: var(--demo-ink-soft); }
.aiw-glossary dd:last-child { margin-bottom: 0; }

/* Fiche « chiffres clés » (tableau clé / valeur, lisible tel quel sur mobile) */
.aiw-facts-wrap { margin: 1rem 0 1.5rem; }
.aiw-facts { width: 100%; border-collapse: collapse; background: var(--demo-bg); font-size: 0.95rem; border: 1px solid var(--demo-border); }
.aiw-facts caption { caption-side: top; text-align: left; font-size: 0.85rem; color: var(--demo-muted); padding-bottom: 0.5rem; }
.aiw-facts th, .aiw-facts td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--demo-border); text-align: left; vertical-align: top; }
.aiw-facts tr:last-child th, .aiw-facts tr:last-child td { border-bottom: 0; }
.aiw-facts th { width: 42%; background: var(--demo-bg-card); font-weight: 600; color: var(--demo-brown); }
.aiw-facts td { color: var(--demo-ink); }

/* Liste « d'autres mariages à découvrir » */
.aiw-more-stories { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.aiw-prose .aiw-more-stories li { margin: 0; padding: 1rem 1.2rem; background: var(--demo-bg); border: 1px solid var(--demo-border); border-radius: var(--radius); }
.aiw-more-stories a { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--demo-link); text-decoration: none; }
.aiw-more-stories a:hover { text-decoration: underline; }
.aiw-more-stories span { display: block; font-size: 0.88rem; color: var(--demo-muted); margin-top: 0.15rem; }
@media (min-width: 720px) { .aiw-more-stories { grid-template-columns: 1fr 1fr; } }

/* ==== Mobile (laisser EN FIN de fichier pour surcharger les règles de base) ==== */
@media (max-width: 560px) {
  .aiw-inline-cta { flex-direction: column; align-items: stretch; text-align: center; gap: 0.9rem; }
  .aiw-prose .aiw-inline-cta p { flex: none; }
  .aiw-inline-cta .demo-btn { width: 100%; justify-content: center; text-align: center; }
  .aiw-steps li { padding: 1rem 1rem 1rem 3.6rem; }
  .aiw-steps li::before { left: 0.9rem; width: 2rem; height: 2rem; font-size: 1.1rem; }
  .aiw-definition { padding: 1.15rem 1.1rem 1rem; }
  .aiw-hero-proof { font-size: 0.85rem; gap: 0.25rem 0.6rem; }
  .aiw-cta-band p.aiw-cta-band__alt { font-size: 0.9rem; line-height: 1.5; }
  .aiw-facts th, .aiw-facts td { padding: 0.65rem 0.8rem; font-size: 0.9rem; }
  .aiw-facts th { width: 45%; }
  .aiw-cta-band p.aiw-cta-band__alt a {
    display: table; margin: 0.55rem auto 0; padding: 0.55rem 1.2rem; border: 1px solid rgba(255,255,255,0.85);
    border-radius: 999px; text-decoration: none; font-size: 1rem; letter-spacing: 0.02em;
  }
}
