/* ============================================================
   Caracara — mapping « blocs natifs Gutenberg → design »
   Les sections sont écrites en blocs natifs (éditables dans l'éditeur).
   Ce fichier raccorde le DOM des blocs (wp-block-group, wp-block-button,
   wp-block-columns…) au design system repris de la maquette.
   Chargé APRÈS styles/extra/extras-v2/planning-v2/theme.
   ============================================================ */

/* ---- Réinitialise les marges de flux dans nos conteneurs grille/flex ---- */
.page-hero > *,
.section-head > *,
.sig-grid > *, .sig-card > *, .sig-body > *, .sig-foot > *,
.testi-grid > *, .testi-card > *, .testi-foot > *, .testi-stats > *, .testi-stats > * > *,
.steps > *, .step > *,
.tarifs-table > *, .tarifs-row > *, .row-main > *, .tarifs-head > *,
.tarifs-notes > *, .note > *, .note > * > *,
.svc-cards > *, .svc-card-body > *, .svc-card-foot > *, .svc-meta > *,
.renata-inner > *, .renata-cta > *,
.book-cta-inner > *,
.hero-headline > *, .hero-bottom > *,
.insta-head > * { margin-block: 0; }

/* ---- Boutons natifs → boutons du design ---- */
.wp-block-button.btn-primary > .wp-block-button__link {
  background: var(--terracotta); color: var(--cream-1);
  padding: 14px 22px; border-radius: 100px;
  font-family: var(--body); font-size: 14px; line-height: 1;
  border: none; transition: transform .2s, background .2s;
}
.wp-block-button.btn-primary > .wp-block-button__link:hover { transform: translateY(-1px); background: var(--accent-deep); }
.wp-block-button.big-cta > .wp-block-button__link { background: var(--ink-1); font-size: 16px; padding: 18px 28px; }
.wp-block-button.big-cta > .wp-block-button__link:hover { background: var(--cream-1); color: var(--ink-1); }

.wp-block-button.btn-cream > .wp-block-button__link {
  background: var(--cream-1); color: var(--ink-1);
  padding: 14px 22px; border-radius: 100px;
  font-family: var(--body); font-size: 14px; line-height: 1;
  border: none; transition: transform .2s;
}
.wp-block-button.btn-cream > .wp-block-button__link:hover { transform: translateY(-1px); }

.wp-block-button.btn-ghost > .wp-block-button__link {
  background: transparent; color: var(--ink-1);
  padding: 14px 0; border-radius: 0;
  border-bottom: 1px solid var(--ink-1);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
}
.wp-block-button.btn-ghost > .wp-block-button__link:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* ---- HERO ---- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 8vw, 100px) var(--pad) clamp(40px, 6vw, 80px);
  display: flex; flex-direction: column; gap: 48px;
  min-height: 80vh;
}
.hero-headline { margin-top: auto; }
.hero-bottom { margin-top: auto; gap: 48px; align-items: end; }
.hero-cta.wp-block-buttons { gap: 12px; align-items: center; }

/* ---- Listes à puces numérotées (compteur CSS) ---- */
.bullets { list-style: none; counter-reset: ccb; padding: 0; margin: 0; }
.bullets li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 16px 0; font-size: 15px;
  border-top: 1px solid color-mix(in srgb, var(--ink-1) 10%, transparent);
}
.bullets li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink-1) 10%, transparent); }
.bullets li::before {
  counter-increment: ccb;
  content: counter(ccb, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px;
  color: var(--terracotta); letter-spacing: 0.08em;
}

/* ---- SPLIT (colonnes natives) ---- */
.split.wp-block-columns {
  display: flex; align-items: center;
  gap: clamp(40px, 6vw, 100px);
  max-width: var(--max); margin-inline: auto;
  padding: clamp(60px, 10vw, 140px) var(--pad);
}

/* ---- SIGNATURES ---- */
.sig-card > .wp-block-image { margin: 0; }
.sig-card .cc-photo img { width: 100%; display: block; }
.sig-body { padding: 24px 0 0; }
.sig-foot.wp-block-group { margin-top: 18px; padding-top: 18px; }
.sig-foot .sig-price { color: var(--terracotta); font-weight: 600; }

/* ---- TÉMOIGNAGES (classes au lieu de strong/span) ---- */
.testi-foot .testi-name {
  font-family: var(--body); font-weight: 600; font-size: 14px; margin-bottom: 2px;
}
.testi-foot .testi-soin {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3);
}
.testi-card.featured .testi-foot .testi-soin { color: color-mix(in srgb, var(--cream-1) 60%, transparent); }
.testi-foot .testi-date {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--terracotta);
}
.testi-stats .stat-num {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em;
  color: var(--terracotta);
}
.testi-stats .stat-lbl {
  margin-top: 8px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}

/* ---- GALERIE INSTAGRAM ---- */
.insta-grid.wp-block-gallery { gap: 8px; }
.insta-grid.wp-block-gallery .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

/* ---- PAGE SERVICES (cartes éditables) ---- */
.svc-cards { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(60px,10vw,120px); display: flex; flex-direction: column; gap: 48px; }
.svc-card.wp-block-columns {
  background: var(--cream-1); border-radius: 6px; overflow: hidden;
  align-items: center; gap: clamp(24px,4vw,48px); margin: 0;
}
.svc-card .cc-photo img { width: 100%; display: block; }
.svc-card-body { padding: clamp(20px,3vw,36px) clamp(20px,3vw,36px) clamp(20px,3vw,36px) 0; }
.svc-card-body .tag {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--ink-1) 20%, transparent);
  border-radius: 100px; color: var(--ink-2); margin-bottom: 14px;
}
.svc-card-body h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(24px,3vw,38px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 14px;
}
.svc-card-body > p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 24px; }
.svc-card-foot { gap: 24px; justify-content: space-between; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--ink-1) 10%, transparent); }
.svc-meta { gap: 16px; align-items: baseline; }
.svc-meta-item { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.svc-meta-price { color: var(--terracotta); font-weight: 600; }
@media (max-width: 760px) {
  .svc-card.wp-block-columns { display: flex; flex-direction: column; }
  .svc-card-body { padding: 0 24px 28px; }
}

/* ---- TARIFS (réutilise la grille de styles.css ; on neutralise le flux) ---- */
.tarifs-head.wp-block-group, .tarifs-row.wp-block-group { align-items: baseline; }
.row-main.wp-block-group { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 16px; }
.tarifs-notes .note.wp-block-group { gap: 16px; align-items: flex-start; }

/* ---- MÉTHODE / STEPS : compat flux ---- */
.steps .step { padding-top: 24px; border-top: 1px solid var(--ink-1); }

/* ---- Images placeholder (ratio géré en CSS, image remplaçable) ---- */
.cc-photo { width: 100%; margin: 0; }
.cc-photo img { width: 100%; display: block; object-fit: cover; }
.cc-r-4-5 img { aspect-ratio: 4/5; }
.cc-r-3-4 img { aspect-ratio: 3/4; }
.cc-r-4-3 img { aspect-ratio: 4/3; }
.cc-r-1-1 img { aspect-ratio: 1/1; }

/* ---- Sécurité responsive colonnes natives ---- */
@media (max-width: 781px) {
  .split.wp-block-columns { flex-direction: column; }
  .split.wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
}
