/*
 * AVBA — Expertise : refonte UX mobile v1.8.0
 *
 * Reprend les valeurs validées sur la page Rachat (plugin AVBA — Rachat : refonte UX v2.17.0)
 * et les applique aux classes réelles du thème utilisées par page-expertise-estimation.php :
 *
 *   .avba-service-hero--expertise      hero
 *   .avba-service-hero__seal           plaque « Bijoux · Montres / Antiquités »
 *   .avba-service-card-grid            grille « Domaines examinés »
 *   .avba-service-card                 les 4 cartes
 *   .avba-framed-photo                 photo de la boutique
 *
 * 100 % présentation : aucun texte, titre, H1/H2/H3, meta, URL ou balisage n'est modifié.
 * Tout est enfermé dans @media (max-width: 760px) — le desktop reste strictement inchangé.
 */

@media (max-width: 760px) {

  body.avba-expertise-refonte {
    /* Réglages rapides */
    --xp-h1: clamp(38px, 11vw, 52px);   /* identique à la page Rachat */
    --xp-lead: 14px;                    /* identique à la page Rachat */
    --xp-photo-max: 205px;              /* identique à la page Rachat */
    --xp-section-y: 40px;               /* respiration verticale entre sections */
  }

  /* ------------------------------------------------------------------
     1. RYTHME GÉNÉRAL — moins de défilement inutile
     ------------------------------------------------------------------ */
  body.avba-expertise-refonte .avba-section {
    padding-top: var(--xp-section-y) !important;
    padding-bottom: var(--xp-section-y) !important;
  }

  /* ------------------------------------------------------------------
     2. HERO — même échelle typographique que Rachat
     ------------------------------------------------------------------ */
  body.avba-expertise-refonte .avba-service-hero--expertise h1 {
    font-size: var(--xp-h1) !important;
    line-height: .94 !important;
    margin-bottom: 18px !important;
    text-wrap: balance;
  }

  body.avba-expertise-refonte .avba-service-hero--expertise .avba-lead {
    max-width: 34ch;
    font-size: var(--xp-lead) !important;
    line-height: 1.55 !important;
    text-wrap: pretty;
  }

  /* ------------------------------------------------------------------
     3. PLAQUE DU HERO — le cartouche devient une ligne de repères
     Même principe que .avba-hero-facts sur Rachat : contenu identique,
     masse visuelle divisée. Le double cadre doré disparaît.
     ------------------------------------------------------------------ */
  body.avba-expertise-refonte .avba-service-hero__seal {
    display: flex !important;
    /* Le thème force flex-direction: column sur la plaque : sans cette ligne,
       les trois éléments restent empilés et centrés au lieu de former une ligne. */
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    text-align: left !important;
    column-gap: 0 !important;
    row-gap: 6px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 14px 0 0 !important;
    padding: 12px 0 0 !important;
    background: none !important;
    border: 0 !important;
    border-top: 1px solid rgba(198, 161, 91, .30) !important;
    border-radius: 0 !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > span,
  body.avba-expertise-refonte .avba-service-hero__seal > strong,
  body.avba-expertise-refonte .avba-service-hero__seal > small {
    margin: 0 !important;
    padding: 0 !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    letter-spacing: .055em !important;
    text-align: left !important;
    text-transform: uppercase !important;
    /* Les trois catégories sont de même niveau : une seule couleur.
       Le <strong> du thème servait à mettre « Paris 15e » en avant sur Rachat ;
       dans une ligne de repères, cette mise en avant n'a plus d'objet. */
    color: rgba(255, 253, 248, .78) !important;
  }

  /* Le point doré remplace le cadre : c'est le seul ornement conservé. */
  body.avba-expertise-refonte .avba-service-hero__seal > strong::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 10px;
    border-radius: 50%;
    background: var(--avba-gold, #c6a15b);
    vertical-align: middle;
    opacity: .9;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > small {
    flex: 0 0 100% !important;
    font-size: 9.2px !important;
    font-weight: 500 !important;
    letter-spacing: .05em !important;
    color: rgba(255, 253, 248, .5) !important;
  }

  /* ------------------------------------------------------------------
     4. DOMAINES EXAMINÉS — registre à filets dorés
     Reprise exacte du principe .avba-study-v3__ledger de la page Rachat.
     Le balisage du thème (span.number + div.body > h3 + p) s'y prête tel quel :
     aucune reconstruction DOM n'est nécessaire, donc rien à réindexer.
     ------------------------------------------------------------------ */
  body.avba-expertise-refonte .avba-section--paper .avba-section-heading h2 {
    font-size: 35px !important;
    line-height: 1 !important;
  }

  body.avba-expertise-refonte .avba-section--paper .avba-section-heading__copy {
    margin-top: 12px !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
  }

  body.avba-expertise-refonte .avba-service-card-grid {
    display: block !important;
    gap: 0 !important;
    margin-top: 20px !important;
    border-top: 1px solid var(--avba-line-gold, rgba(198, 161, 91, .33)) !important;
  }

  body.avba-expertise-refonte .avba-service-card-grid > .avba-service-card {
    display: grid !important;
    grid-template-columns: 37px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 15px 0 !important;
    background: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--avba-line-gold, rgba(198, 161, 91, .33)) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.avba-expertise-refonte .avba-service-card-grid > .avba-service-card:last-child {
    border-bottom: 0 !important;
  }

  /* Le filet dégradé en bas de carte n'a plus lieu d'être dans un registre. */
  body.avba-expertise-refonte .avba-service-card-grid > .avba-service-card::after {
    display: none !important;
  }

  /* Le numéro reprend sa place dans le flux : c'est lui qui supprime le grand vide. */
  body.avba-expertise-refonte .avba-service-card .avba-service-card__number {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding-top: 5px !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .15em !important;
    color: var(--avba-gold-dark, #967036) !important;
    text-shadow: none !important;
  }

  body.avba-expertise-refonte .avba-service-card .avba-service-card__body {
    padding: 0 !important;
  }

  body.avba-expertise-refonte .avba-service-card h3 {
    margin: 0 !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 27px !important;
    font-weight: 600 !important;
    line-height: 1.02 !important;
    letter-spacing: -.015em !important;
    color: var(--avba-brown-deep, #251d19) !important;
    text-wrap: balance;
  }

  body.avba-expertise-refonte .avba-service-card p {
    max-width: 34ch !important;
    margin: 6px 0 0 !important;
    font-size: 13.5px !important;
    line-height: 1.48 !important;
    color: var(--avba-text-soft, #5e534d) !important;
  }

  /* Si une image de catégorie est un jour ajoutée via le Customizer. */
  body.avba-expertise-refonte .avba-service-card .avba-service-card__media {
    grid-column: 1 / -1 !important;
    margin: 0 0 10px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  /* ------------------------------------------------------------------
     5. PHOTO DE LA BOUTIQUE — recadrée comme sur Rachat
     Le thème autorise 690 px de haut : c'est l'origine du bloc trop grand.
     ------------------------------------------------------------------ */
  body.avba-expertise-refonte .avba-framed-photo {
    padding: 6px !important;
    border-radius: 14px !important;
  }

  body.avba-expertise-refonte .avba-framed-photo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: var(--xp-photo-max) !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
  }

  body.avba-expertise-refonte .avba-framed-photo figcaption {
    padding: 10px 4px 2px !important;
    font-size: .62rem !important;
    letter-spacing: .10em !important;
  }

  /* ------------------------------------------------------------------
     6. BLOC « PRÉCISION IMPORTANTE » — l'image passe après le texte
     Sur mobile la photo arrivait avant le H2 et repoussait le contenu utile.
     ------------------------------------------------------------------ */
  body.avba-expertise-refonte .avba-two-column-feature--reverse {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
  }

  body.avba-expertise-refonte .avba-two-column-feature--reverse > .avba-framed-photo {
    order: 2 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.avba-expertise-refonte * {
    transition: none !important;
  }
}


/* ==================================================================
   v1.3.0 — finitions demandées
   ================================================================== */

@media (max-width: 760px) {

  /* La ligne de catégories du hero est désormais un seul texte :
     espaces identiques autour de chaque point médian. */
  body.avba-expertise-refonte .avba-service-hero__seal > span {
    flex: 0 0 100% !important;
    word-spacing: .08em !important;
    white-space: normal !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > strong {
    display: none !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > strong::before {
    display: none !important;
    content: none !important;
  }

  /* Avec 4 catégories, on garde une ligne dense mais lisible.
     Le sous-texte reste juste en dessous. */
  body.avba-expertise-refonte .avba-service-hero__seal {
    row-gap: 5px !important;
    padding-top: 11px !important;
  }

  /* Le 05 « Successions et ensembles » est le dernier item visuel. */
  body.avba-expertise-refonte .avba-service-card-grid > .avba-service-card:last-child {
    border-bottom: 0 !important;
  }

  /* Réduit uniquement le vide SOUS la photo/légende, pas la photo elle-même. */
  body.avba-expertise-refonte .avba-xp-notice-section {
    padding-bottom: 16px !important;
  }

  body.avba-expertise-refonte .avba-xp-notice-section .avba-framed-photo {
    margin-bottom: 0 !important;
  }

  body.avba-expertise-refonte .avba-xp-notice-section .avba-framed-photo figcaption {
    padding-bottom: 0 !important;
  }
}

/* Le 5e domaine doit aussi rester propre lorsqu'on vérifiera le desktop. */
@media (min-width: 761px) {
  body.avba-expertise-refonte .avba-service-card-grid.avba-xp-has-five {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  body.avba-expertise-refonte .avba-service-card-grid.avba-xp-has-five > .avba-service-card {
    min-width: 0 !important;
  }

  body.avba-expertise-refonte .avba-service-card-grid.avba-xp-has-five h3 {
    font-size: clamp(1.18rem, 1.55vw, 1.48rem) !important;
  }
}

/* ========================================================================== */
/* v1.4.0 — réassurance, accordéon « Précision importante », CTA photos       */
/* ========================================================================== */

body.avba-expertise-refonte .avba-xp-reassurance-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(198, 161, 91, .16);
  border-radius: 14px;
  background: rgba(243, 237, 226, .78);
  color: var(--avba-brown, #3b302a);
  font: 650 13px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.avba-expertise-refonte .avba-xp-reassurance-note::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: .42em;
  border-radius: 50%;
  background: var(--avba-gold, #c6a15b);
  box-shadow: 0 0 0 5px rgba(198, 161, 91, .12);
}

/* Le toggle n'est utile visuellement que sur mobile. Sur desktop, la section reste ouverte. */
body.avba-expertise-refonte .avba-xp-precision-toggle {
  display: none;
}

body.avba-expertise-refonte .avba-xp-precision-panel[hidden] {
  display: none !important;
}

/* CTA photos, même langage que Rachat mais scope Expertise. */
body.avba-expertise-refonte .avba-xp-photocta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 24px;
  padding: 15px 17px;
  border: 1px solid var(--avba-line-gold, rgba(198, 161, 91, .33));
  border-radius: 14px;
  background: var(--avba-ivory, #f3ede2);
}

body.avba-expertise-refonte .avba-xp-photocta__text {
  color: var(--avba-brown, #3b302a);
  font: 650 13px/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.avba-expertise-refonte .avba-xp-photocta__button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid var(--avba-gold-dark, #967036) !important;
  border-radius: 999px !important;
  background: var(--avba-dark, #181310) !important;
  color: var(--avba-paper, #fffdf8) !important;
  text-decoration: none !important;
  font: 750 10.5px/1 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

body.avba-expertise-refonte .avba-xp-form-anchor {
  position: relative;
  top: -96px;
  display: block;
  width: 0;
  height: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  /* Réassurance juste après le registre : proche visuellement du modèle Rachat. */
  body.avba-expertise-refonte .avba-xp-reassurance-note {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 13px;
    font-size: 12.8px;
    line-height: 1.45;
  }

  /* Accordéon compact ; le contenu source reste dans le DOM et ne charge rien au clic. */
  body.avba-expertise-refonte .avba-xp-precision-shell {
    width: 100%;
  }

  body.avba-expertise-refonte .avba-xp-precision-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 16px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 22px 0 20px;
    border: 0;
    border-top: 1px solid var(--avba-line-gold, rgba(198, 161, 91, .33));
    border-bottom: 1px solid var(--avba-line-gold, rgba(198, 161, 91, .33));
    background: transparent;
    color: inherit;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }

  body.avba-expertise-refonte .avba-xp-precision-toggle__copy {
    display: block;
    min-width: 0;
  }

  body.avba-expertise-refonte .avba-xp-precision-toggle__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--avba-gold-dark, #967036);
    font: 750 11px/1.25 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .17em;
    text-transform: uppercase;
  }

  body.avba-expertise-refonte .avba-xp-precision-toggle__title {
    display: block;
    max-width: 13ch;
    color: var(--avba-dark, #181310);
    font: 600 30px/.98 "Cormorant Garamond", Georgia, serif;
    letter-spacing: -.02em;
    text-wrap: balance;
  }

  body.avba-expertise-refonte .avba-xp-precision-toggle__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: 1px;
    border: 1px solid var(--avba-gold-dark, #967036);
    border-radius: 50%;
    color: var(--avba-gold-dark, #967036);
    font: 400 23px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  }

  body.avba-expertise-refonte .avba-xp-precision-panel {
    padding-top: 18px;
  }

  /* Le titre/eyebrow source restent dans le HTML mais ne sont pas répétés visuellement dans le panneau. */
  body.avba-expertise-refonte .avba-xp-precision-panel .avba-xp-precision-source-heading {
    display: none !important;
  }

  /* Le bloc Precision devient vraiment secondaire : on évite de recréer un grand panneau. */
  body.avba-expertise-refonte .avba-xp-precision-accordion-ready {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  body.avba-expertise-refonte .avba-xp-precision-accordion-ready .avba-two-column-feature--reverse {
    gap: 16px !important;
  }

  /* CTA photo plein format mobile, comme sur Rachat. */
  body.avba-expertise-refonte .avba-xp-photocta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding: 13px 14px;
  }

  body.avba-expertise-refonte .avba-xp-photocta__button {
    width: 100%;
    min-height: 46px;
    display: grid;
    place-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.avba-expertise-refonte .avba-xp-precision-toggle,
  body.avba-expertise-refonte .avba-xp-photocta__button {
    transition: none !important;
  }
}

/* ========================================================================== */
/* v1.6.0 — photo boutique : même format horizontal que la page Rachat       */
/* ========================================================================== */

/* La légende fait désormais partie de l'image, comme sur Rachat. */
body.avba-expertise-refonte .avba-framed-photo {
  position: relative !important;
  overflow: hidden !important;
}

body.avba-expertise-refonte .avba-framed-photo::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(15, 12, 10, .62));
}

body.avba-expertise-refonte .avba-framed-photo figcaption,
body.avba-expertise-refonte .avba-framed-photo .avba-xp-shop-caption-refined {
  position: absolute !important;
  z-index: 1 !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 253, 248, .92) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  pointer-events: none;
}

@media (max-width: 760px) {
  /* Exactement le langage visuel de la photo Rachat : bandeau horizontal,
     pleine largeur du bloc, 170px de haut et sans carte portrait centrée. */
  body.avba-expertise-refonte .avba-two-column-feature--reverse > .avba-framed-photo,
  body.avba-expertise-refonte .avba-xp-notice-section .avba-framed-photo {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 170px !important;
    min-height: 170px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--avba-brown-deep, #251d19) !important;
  }

  body.avba-expertise-refonte .avba-two-column-feature--reverse > .avba-framed-photo img,
  body.avba-expertise-refonte .avba-xp-notice-section .avba-framed-photo img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center 49% !important;
  }

  body.avba-expertise-refonte .avba-framed-photo figcaption,
  body.avba-expertise-refonte .avba-framed-photo .avba-xp-shop-caption-refined {
    left: 17px !important;
    right: 17px !important;
    bottom: 12px !important;
    font-size: 9.4px !important;
  }

  /* L'ancien figcaption occupait de la hauteur sous l'image : plus aucun vide. */
  body.avba-expertise-refonte .avba-xp-notice-section .avba-framed-photo figcaption {
    padding: 0 !important;
  }
}


/* ========================================================================== */
/* v1.7.0 — rapproche le bloc « Ce que nous étudions » du rythme de Rachat   */
/* ========================================================================== */

@media (max-width: 760px) {
  /* Le thème laisse trop d’air dans le bloc d’introduction des domaines.
     On resserre le haut de section, l’écart sous le titre et le départ du registre
     pour retrouver le même rythme perçu que sur la page Rachat. */
  body.avba-expertise-refonte .avba-section--paper {
    padding-top: 30px !important;
    padding-bottom: 28px !important;
  }

  body.avba-expertise-refonte .avba-section--paper .avba-section-heading {
    margin-bottom: 0 !important;
  }

  body.avba-expertise-refonte .avba-section--paper .avba-section-heading h2 {
    margin: 0 !important;
  }

  body.avba-expertise-refonte .avba-section--paper .avba-section-heading__copy {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  body.avba-expertise-refonte .avba-service-card-grid {
    margin-top: 14px !important;
  }

  body.avba-expertise-refonte .avba-service-card-grid > .avba-service-card {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
  }
}


/* v1.8.0 — durcissement SEO/performance uniquement : aucun changement visuel. */

/* ========================================================================== */
/* AVBA Expertise v1.9.0 — hero desktop aligné sur Rachat 3.4.4              */
/* Mobile inchangé. Pas de hauteur rigide : même rythme, même typo, mêmes CTA.*/
/* ========================================================================== */
@media (min-width: 1024px) {
  body.avba-expertise-refonte .avba-service-hero--expertise {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding-top: clamp(38px, 4.8vh, 58px) !important;
    padding-bottom: clamp(34px, 4.5vh, 54px) !important;
  }

  body.avba-expertise-refonte .avba-service-hero--expertise h1 {
    max-width: 760px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    font-size: clamp(56px, 5vw, 72px) !important;
    line-height: .92 !important;
    letter-spacing: -.025em !important;
    text-wrap: balance;
  }

  body.avba-expertise-refonte .avba-service-hero--expertise .avba-lead {
    max-width: 58ch !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
    line-height: 1.52 !important;
  }

  body.avba-expertise-refonte .avba-service-hero--expertise .avba-actions {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 12px !important;
  }

  body.avba-expertise-refonte .avba-service-hero--expertise .avba-button,
  body.avba-expertise-refonte .avba-service-hero--expertise a[role="button"] {
    min-height: 44px !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
}

@media (min-width: 1024px) and (max-height: 900px) {
  body.avba-expertise-refonte .avba-service-hero--expertise {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  body.avba-expertise-refonte .avba-service-hero--expertise h1 {
    max-width: 730px !important;
    margin-bottom: 14px !important;
    font-size: clamp(52px, 4.7vw, 66px) !important;
    line-height: .91 !important;
  }

  body.avba-expertise-refonte .avba-service-hero--expertise .avba-lead {
    max-width: 56ch !important;
    margin-bottom: 16px !important;
    font-size: 15.5px !important;
    line-height: 1.48 !important;
  }
}

/* ========================================================================== */
/* AVBA Expertise v1.9.1 — alignement VISUEL du hero sur Rachat 3.4.4       */
/* Mesure comparative sur captures de même viewport : H1 déjà aligné ;       */
/* l'écart venait surtout du lead plus petit/court sur Expertise.             */
/* Desktop uniquement. Mobile inchangé.                                      */
/* ========================================================================== */
@media (min-width: 1024px) {
  body.avba-expertise-refonte .avba-service-hero--expertise {
    box-sizing: border-box !important;
    /* Même proportion verticale observée sur le hero Rachat validé.
       Le clamp évite un hero excessif sur très grands écrans et garde
       une hauteur cohérente sur les portables à écran moins haut. */
    min-height: clamp(460px, 63.2vh, 730px) !important;
    height: auto !important;
    max-height: none !important;
  }

  body.avba-expertise-refonte .avba-service-hero--expertise .avba-lead {
    /* Rachat présente visuellement un lead plus statutaire que les 16 px
       hérités d'Expertise. On harmonise la densité sans modifier le texte. */
    max-width: 760px !important;
    font-size: clamp(19px, 1.15vw, 22px) !important;
    line-height: 1.58 !important;
    margin-bottom: 26px !important;
  }
}

@media (min-width: 1024px) and (max-height: 900px) {
  body.avba-expertise-refonte .avba-service-hero--expertise {
    min-height: clamp(460px, 63.2vh, 570px) !important;
  }

  body.avba-expertise-refonte .avba-service-hero--expertise .avba-lead {
    font-size: clamp(18px, 1.2vw, 20px) !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
  }
}


/* ========================================================================== */
/* AVBA Expertise v1.9.2 — repère hero identique à Rachat                    */
/* Remplace le cartouche redondant par adresse + expérience.                  */
/* Aucun changement du H1, de l'URL, des metas ou des sections suivantes.     */
/* ========================================================================== */
@media (min-width: 1024px) {
  body.avba-expertise-refonte .avba-service-hero__seal {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 6px !important;
    width: min(320px, 100%) !important;
    max-width: 320px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px 0 15px !important;
    background: none !important;
    border: 0 !important;
    border-top: 1px solid rgba(198, 161, 91, .48) !important;
    border-bottom: 1px solid rgba(198, 161, 91, .18) !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-align: left !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > span,
  body.avba-expertise-refonte .avba-service-hero__seal > strong {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-style: normal !important;
    text-align: left !important;
    text-transform: uppercase !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > span {
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 750 !important;
    letter-spacing: .035em !important;
    color: rgba(255, 253, 248, .93) !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > strong {
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 520 !important;
    letter-spacing: .02em !important;
    color: rgba(234, 215, 165, .78) !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > strong::before,
  body.avba-expertise-refonte .avba-service-hero__seal > strong::after {
    display: none !important;
    content: none !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > small {
    display: none !important;
  }
}

/* Mobile : même information utile, dans le rythme compact déjà validé. */
@media (max-width: 760px) {
  body.avba-expertise-refonte .avba-service-hero__seal {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-top: 14px !important;
    padding: 11px 0 10px !important;
    border: 0 !important;
    border-top: 1px solid rgba(198, 161, 91, .30) !important;
    border-bottom: 1px solid rgba(198, 161, 91, .14) !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > span,
  body.avba-expertise-refonte .avba-service-hero__seal > strong {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-style: normal !important;
    text-align: left !important;
    text-transform: uppercase !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > span {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    font-weight: 720 !important;
    letter-spacing: .035em !important;
    color: rgba(255, 253, 248, .90) !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > strong {
    font-size: 10px !important;
    line-height: 1.35 !important;
    font-weight: 520 !important;
    letter-spacing: .02em !important;
    color: rgba(234, 215, 165, .76) !important;
  }

  body.avba-expertise-refonte .avba-service-hero__seal > strong::before,
  body.avba-expertise-refonte .avba-service-hero__seal > strong::after,
  body.avba-expertise-refonte .avba-service-hero__seal > small {
    display: none !important;
    content: none !important;
  }
}

/* ========================================================================== */
/* AVBA Expertise v1.9.3 — alignement vertical des CTA sur le hero Rachat    */
/* Mesure comparative captures desktop identiques : Expertise ≈ 98 px haut. */
/* Desktop uniquement. H1, lead, repère, hauteur hero et mobile inchangés.   */
/* ========================================================================== */
@media (min-width: 1024px) {
  body.avba-expertise-refonte .avba-service-hero--expertise .avba-actions {
    margin-top: clamp(72px, 8.5vh, 100px) !important;
    margin-bottom: 0 !important;
  }
}

/* ========================================================================== */
/* AVBA Core Expertise 1.0.2 — hero aligné sur l'Accueil / Rachat 3.5.0      */
/* Présentation uniquement : contenus, liens, formulaire et SEO inchangés.    */
/* ========================================================================== */
@media (min-width: 1024px) {
  body.avba-expertise-refonte .avba-service-hero--expertise {
    min-height: 0 !important;
    padding-top: clamp(72px, 7vw, 104px) !important;
    padding-bottom: clamp(72px, 7vw, 104px) !important;
  }
  body.avba-expertise-refonte .avba-service-hero--expertise .avba-lead {
    max-width: 760px !important;
    margin: 0 !important;
    font-size: clamp(19px, 1.15vw, 22px) !important;
    line-height: 1.58 !important;
  }
  body.avba-expertise-refonte .avba-service-hero--expertise .avba-actions,
  body.avba-expertise-refonte .avba-service-hero--expertise .avba-actions--spaced {
    margin-top: 22px !important;
    margin-bottom: 0 !important;
    gap: 12px !important;
  }
  body.avba-expertise-refonte .avba-service-hero--expertise .avba-button {
    min-height: 44px !important;
  }
}
@media (max-width: 760px) {
  body.avba-expertise-refonte .avba-service-hero--expertise .avba-actions,
  body.avba-expertise-refonte .avba-service-hero--expertise .avba-actions--spaced {
    margin-top: 20px !important;
    gap: 10px !important;
  }
  body.avba-expertise-refonte .avba-service-hero--expertise .avba-button {
    min-height: 48px !important;
  }
}

/* AVBA Core Expertise 1.0.5 — fond harmonisé, dimensions natives conservées */
body.avba-expertise-refonte .avba-service-hero--expertise {
  background:
    radial-gradient(circle at 76% 19%, rgba(198,161,91,.20), transparent 24%),
    radial-gradient(circle at 10% 90%, rgba(151,112,54,.13), transparent 25%),
    linear-gradient(121deg, #15110e 0%, #33271f 59%, #17120f 100%) !important;
  border-bottom:1px solid rgba(198,161,91,.30) !important;
}
