/* Mon approche — hero mobile : cadrer sur la femme (pas le mur à droite) */
@media (max-width: 991.98px) {
  .page-mon-approche .approche-page-hero-bg {
    background-size: auto 128%;
    background-position: 48% 58px;
  }
}

/* Mon approche V5 — bandeaux mobile (dimensions égales + hover type accueil) */
@media (max-width: 767.98px) {
  .page-mon-approche .section-2 {
    padding: 52px 0 64px;
  }

  .page-mon-approche .section-2-intro {
    padding: 0 20px;
    margin-bottom: 26px;
  }

  .page-mon-approche .section-2 .color-square,
  .page-mon-approche .section-2 .tuile-photo {
    display: none !important;
  }

  .page-mon-approche .section-2 .grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 18px 10px;
    isolation: isolate;
  }

  .page-mon-approche .section-2 a.tuile-link {
    --tuile-img: 100px;
    --tuile-h: 100px;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: var(--tuile-img) minmax(0, 1fr) 28px;
    align-items: stretch;
    width: 100%;
    height: var(--tuile-h);
    min-height: var(--tuile-h);
    max-height: var(--tuile-h);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    box-shadow: 0 6px 22px rgba(73, 58, 49, 0.07);
    box-sizing: border-box;
    position: relative;
    z-index: 0;
    /* Pas de translate : évite le chevauchement (comme .index-pitch-card) */
    transform: none !important;
    transition:
      box-shadow 0.25s ease,
      background 0.25s ease !important;
  }

  /* Contour sur tout le bandeau (photo comprise) */
  .page-mon-approche .section-2 a.tuile-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 0.5px solid rgba(201, 131, 95, 0.45);
    pointer-events: none;
    z-index: 5;
    box-sizing: border-box;
    display: block !important;
    background: none !important;
    transform: none !important;
    transition: border-color 0.25s ease, border-width 0.25s ease;
  }

  .page-mon-approche .section-2 a.tuile-link:hover,
  .page-mon-approche .section-2 a.tuile-link:focus-visible,
  .page-mon-approche .section-2 a.tuile-link:active {
    z-index: 2;
    transform: none !important;
    box-shadow: 0 12px 28px rgba(73, 58, 49, 0.14) !important;
    background: #fff !important;
    border-color: transparent !important;
  }

  .page-mon-approche .section-2 a.tuile-link:hover::before,
  .page-mon-approche .section-2 a.tuile-link:focus-visible::before,
  .page-mon-approche .section-2 a.tuile-link:active::before {
    border-width: 1px;
    border-color: rgba(201, 131, 95, 0.7);
  }

  .page-mon-approche .section-2 a.tuile-link::after {
    content: "";
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 7px;
    height: 7px;
    margin: 0;
    border-right: 1.5px solid #c9835f;
    border-top: 1.5px solid #c9835f;
    transform: rotate(45deg);
    opacity: 0.75;
    z-index: 6;
    transition: border-color 0.25s ease, opacity 0.25s ease;
  }

  .page-mon-approche .section-2 a.tuile-link:hover::after,
  .page-mon-approche .section-2 a.tuile-link:focus-visible::after,
  .page-mon-approche .section-2 a.tuile-link:active::after {
    border-color: #7a2a21;
    opacity: 1;
    transform: rotate(45deg);
  }

  .page-mon-approche .section-2 .flip-card-inner,
  .page-mon-approche .section-2 .flip-card-front {
    display: contents;
  }

  .page-mon-approche .section-2 .flip-card-back {
    display: none !important;
  }

  .page-mon-approche .section-2 .effect-bubba {
    background: rgba(255, 255, 255, 0.92);
  }

  .page-mon-approche .section-2 a.tuile-link > img,
  .page-mon-approche .section-2 .flip-card-front > img,
  .page-mon-approche .section-2 .effect-bubba > img {
    grid-column: 1;
    grid-row: 1;
    width: var(--tuile-img);
    height: var(--tuile-h);
    min-height: var(--tuile-h);
    max-height: var(--tuile-h);
    object-fit: cover;
    object-position: center;
    position: static;
    opacity: 1;
    filter: none;
    transform: none !important;
  }

  .page-mon-approche .section-2 a.tuile-link > figcaption,
  .page-mon-approche .section-2 .flip-card-front > figcaption,
  .page-mon-approche .section-2 .effect-bubba > figcaption {
    grid-column: 2;
    grid-row: 1;
    position: static;
    inset: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: auto;
    height: 100%;
    min-height: 0;
    max-width: none;
    max-height: 100%;
    padding: 12px 6px 12px 16px;
    background: transparent;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
  }

  .page-mon-approche .section-2 a.tuile-link figcaption::before,
  .page-mon-approche .section-2 a.tuile-link figcaption::after,
  .page-mon-approche .section-2 .effect-bubba figcaption::before,
  .page-mon-approche .section-2 .effect-bubba figcaption::after {
    display: none !important;
  }

  .page-mon-approche .section-2 a.tuile-link h2,
  .page-mon-approche .section-2 .effect-bubba h2,
  .page-mon-approche .section-2 .flip-card-front h2 {
    position: static;
    transform: none !important;
    margin: 0;
    padding: 0;
    max-width: 100%;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(0.88rem, 3.2vw, 1.05rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: left;
    color: #04344A;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-mon-approche .section-2 a.tuile-link h2 br,
  .page-mon-approche .section-2 .effect-bubba h2 br,
  .page-mon-approche .section-2 .flip-card-front h2 br {
    display: none;
  }

  .page-mon-approche .section-2 a.tuile-link h2 span,
  .page-mon-approche .section-2 .effect-bubba h2 span,
  .page-mon-approche .section-2 .flip-card-front h2 span {
    display: inline;
    margin-top: 0;
    font-style: italic;
    font-weight: 500;
    color: #04344A;
  }

  .page-mon-approche .section-2 a.tuile-link h2 span::before,
  .page-mon-approche .section-2 .effect-bubba h2 span::before,
  .page-mon-approche .section-2 .flip-card-front h2 span::before {
    content: "\00a0";
  }

  .page-mon-approche .section-2 a.tuile-link p,
  .page-mon-approche .section-2 .effect-bubba p,
  .page-mon-approche .section-2 .flip-card-front p {
    position: static;
    transform: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    max-height: none;
    max-width: none;
    opacity: 1;
    margin: 6px 0 0;
    padding: 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(73, 58, 49, 0.78);
    text-align: left;
    text-shadow: none;
    pointer-events: none;
  }

  .page-mon-approche .section-2 .flip-card-front::before {
    display: none !important;
  }

  /* Contour bandeau : a.tuile-link::before — ne pas masquer (même sur .effect-bubba) */
  .page-mon-approche .section-2 a.tuile-link.effect-bubba::before {
    display: block !important;
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 0.5px solid rgba(201, 131, 95, 0.45);
    pointer-events: none;
    z-index: 5;
    box-sizing: border-box;
    background: none !important;
    transform: none !important;
  }

  .page-mon-approche .section-2 a.tuile-link.effect-bubba:hover::before,
  .page-mon-approche .section-2 a.tuile-link.effect-bubba:focus-visible::before,
  .page-mon-approche .section-2 a.tuile-link.effect-bubba:active::before {
    border-width: 1px;
    border-color: rgba(201, 131, 95, 0.7);
  }

  @media (prefers-reduced-motion: reduce) {
    .page-mon-approche .section-2 a.tuile-link,
    .page-mon-approche .section-2 a.tuile-link::after {
      transition: none !important;
    }
  }
}
