/* ============================================================
   JULIE MEESSEN INSTITUT — additions.css
   Chargée APRÈS styles.css. Contient :
   1. Substitution de la police de labeur (Monterchi trial → EB Garamond)
   2. Façade de carte Google (chargement au clic)
   3. FAQ en accordéon natif <details>
   4. Liens légaux du footer + gabarit des pages légales
   ============================================================ */

/* ---------- 1. POLICE DE LABEUR ----------------------------- */
/* Monterchi n'était disponible qu'en version d'essai, non licenciée
   pour la production. Remplacée par EB Garamond (SIL Open Font
   License, usage web libre). Déposer les .woff2 dans assets/fonts/. */
@font-face {
  font-family: 'EB Garamond';
  src: url('../assets/fonts/EBGaramond-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../assets/fonts/EBGaramond-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../assets/fonts/EBGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

/* EB Garamond porte plus bas que Monterchi : léger rattrapage. */
body { font-size: 1.04rem; }

/* ---------- 2. FAÇADE DE CARTE ------------------------------ */
/* Aucune requête vers Google tant que la visiteuse n'a pas cliqué :
   ~660 Ko et tous les cookies Maps économisés au chargement. */
.map-facade {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background: var(--cream-2);
}
.map-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(.95);
  transition: filter .5s var(--ease);
}
.map-facade:hover img { filter: grayscale(.4) contrast(1); }

.map-facade__btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: .95rem 2rem;
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .3s var(--ease);
}
.map-facade__btn:hover,
.map-facade__btn:focus-visible { background: var(--accent); }

.map-facade__note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: .7rem 1rem;
  font-size: .74rem;
  font-weight: 300;
  line-height: 1.4;
  text-align: center;
  color: var(--cream);
  background: rgba(45, 44, 43, .72);
}

.map-facade iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------- 3. FAQ ------------------------------------------ */
.faq { padding-block: var(--section-y); background: var(--cream-2); }

.faq__list {
  max-width: 820px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
  line-height: 1.32;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform .35s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }

.faq__a {
  padding-bottom: 1.6rem;
  max-width: 68ch;
}
.faq__a p {
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq__q::after { transition: none; }
}

/* ---------- 4. FOOTER LÉGAL + PAGES LÉGALES ----------------- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-legal a {
  font-size: .82rem;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--accent);
}

.legal {
  padding-block: calc(var(--section-y) + 5rem) var(--section-y);
  background: var(--cream);
}
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.legal__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}
.legal__updated {
  font-size: .85rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 3rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin: 2.8rem 0 1rem;
}
.legal p,
.legal li {
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
}
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1.4rem 1.2rem; }
.legal li { margin-bottom: .45rem; }
.legal a { color: var(--accent); }

/* ---------- 5. HEADER SUR LES PAGES SANS HERO --------------- */
/* Les pages légales n'ont pas de visuel sombre en haut : le header
   doit être opaque dès le chargement, sinon le logo blanc disparaît
   sur le fond crème. */
body.page-legal .site-header {
  background: var(--cream);
  padding: .85rem 0;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(0, 0, 0, .4);
}
body.page-legal .site-header .header__logo-img--light { opacity: 0; }
body.page-legal .site-header .header__logo-img--dark  { opacity: 1; }
body.page-legal .site-header .header__logo,
body.page-legal .site-header .nav-menu a { color: var(--ink); }
body.page-legal .site-header .nav-cta { border-color: var(--ink); }
body.page-legal .site-header .nav-cta:hover { background: var(--ink); color: var(--cream); }
body.page-legal .site-header .nav-toggle span { background: var(--ink); }

@media (max-width: 860px) {
  body.page-legal .site-header .nav-menu a { color: var(--cream); }
}

/* Repli si l'image de façade n'est pas encore en place */
.map-facade {
  background: repeating-linear-gradient(45deg, var(--cream-2) 0 14px, var(--cream) 14px 28px);
}
.map-facade img { background: var(--cream-2); }

/* ============================================================
   6. CORRECTIFS D'INTERFACE
   ============================================================ */

/* ---------- Bouton fantôme : lisibilité au survol ----------- */
/* `background: currentColor` + `color: var(--ink)` résolvaient tous
   deux vers --ink : texte sombre sur fond sombre. On fixe les deux
   couleurs explicitement. */
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.hero__actions .btn--ghost:hover,
.hero__actions .btn--ghost:focus-visible {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* ---------- Police de labeur là où le display était utilisé -- */
/* Avis et questions de FAQ passent en EB Garamond. */
.testimonial__text,
.faq__q {
  font-family: var(--font-body);
}
.testimonial__text { font-size: 1.12rem; line-height: 1.62; font-weight: 400; }
.faq__q { font-weight: 400; }

.testimonial__source {
  display: block;
  margin-top: .3rem;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Marques : seconde rangée ------------------------ */
.brands__label {
  max-width: var(--container);
  margin: 0 auto .9rem;
  padding-inline: var(--gutter);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
}
.brands__label + .brands__grid { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.brands__grid--three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .brands__grid--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .brands__grid--three { grid-template-columns: 1fr; }
}

/* ---------- Footer : colonne horaires sur une seule ligne ---- */
.site-footer__grid { grid-template-columns: 1.25fr 1fr 1.3fr .55fr; }
.footer-hours dt,
.footer-hours dd { white-space: nowrap; }
.footer-hours div { gap: 1.5rem; }

@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer : réseaux en icônes ---------------------- */
.footer-social--icons {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-social--icons li { padding: 0; }
.footer-social--icons a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: rgba(245, 240, 238, .85);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.footer-social--icons a:hover,
.footer-social--icons a:focus-visible {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--cream);
}
.footer-social--icons svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-social--icons svg .is-filled {
  fill: currentColor;
  stroke: none;
}

/* ---------- Flux Instagram : pastille vidéo ----------------- */
.instagram__item { position: relative; }
.instagram__video {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(28, 26, 25, .55);
  backdrop-filter: blur(2px);
}
.instagram__video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 7px solid var(--cream);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

/* ============================================================
   7. HERO — lisibilité du texte sur la vidéo
   ============================================================ */
/* Mesuré sur la vidéo : sans traitement, le contraste du titre tombe à
   1,72:1 sur les images les plus claires — très en dessous des 4,5:1
   exigés par WCAG AA. Les réglages ci-dessous le remontent à 5,3:1.
   Les quatre variables se règlent en direct dans l'inspecteur. */
:root {
  --hero-dim:         .66;   /* luminosité de la vidéo : plus bas = plus sombre */
  --hero-veil-top:    .52;
  --hero-veil-middle: .50;   /* c'est ce réglage qui protège le titre */
  --hero-veil-bottom: .70;
}

.hero__video { filter: brightness(var(--hero-dim)) saturate(.92); }

.hero__overlay {
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%,
      rgba(45, 44, 43, .36) 0%, rgba(45, 44, 43, 0) 70%),
    linear-gradient(180deg,
      rgba(45, 44, 43, var(--hero-veil-top))    0%,
      rgba(45, 44, 43, var(--hero-veil-middle)) 42%,
      rgba(45, 44, 43, var(--hero-veil-bottom)) 100%);
}

/* Filet de sécurité : invisible sur fond sombre, décisif sur une image claire */
.hero__title,
.hero__lead,
.hero__eyebrow { text-shadow: 0 1px 24px rgba(28, 26, 25, .45); }

/* ============================================================
   8. MARQUES — logo révélé au survol
   ============================================================ */
/* Au repos la card reste telle quelle. Au survol elle passe au blanc,
   le texte s'efface et le logo de la maison apparaît. Le texte reste
   dans le DOM : les lecteurs d'écran et Google le lisent normalement. */
.brand-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
}
.brand-card__body { transition: opacity .4s var(--ease); }

.brand-card__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.94);
  width: min(62%, 190px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .55s var(--ease);
}

.brand-card:hover,
.brand-card:focus-within { background: var(--nacre, #fff); }
.brand-card:hover .brand-card__body,
.brand-card:focus-within .brand-card__body { opacity: 0; }
.brand-card:hover .brand-card__logo,
.brand-card:focus-within .brand-card__logo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Sans survol (tactile), le logo n'apparaîtrait jamais : on l'affiche
   discrètement sous le texte plutôt que de le cacher pour de bon. */
@media (hover: none) and (min-width: 721px) {
  .brand-card { min-height: 0; }
  .brand-card__logo {
    position: static;
    transform: none;
    opacity: .55;
    width: min(55%, 150px);
    margin-top: 1.4rem;
  }
  .brand-card:hover .brand-card__body { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-card__body,
  .brand-card__logo { transition: opacity .01ms; }
  .brand-card__logo { transform: translate(-50%, -50%); }
}

/* ============================================================
   9. MOBILE — grilles sur deux colonnes
   ============================================================ */
/* La page d'accueil en une seule colonne devenait très longue : six
   univers puis sept maisons, un par écran. On repasse à deux colonnes
   et on resserre la typographie en conséquence. */
@media (max-width: 720px) {
  .brands__grid,
  .brands__grid--three { grid-template-columns: repeat(2, 1fr); }

  .service-card__body { padding: 1rem .9rem 1.2rem; }
  .service-card__index { font-size: 1.1rem; margin-bottom: .2rem; }
  .service-card__title { font-size: 1.12rem; line-height: 1.22; margin-bottom: .45rem; }
  .service-card__desc  { font-size: .84rem; line-height: 1.5; margin-bottom: .9rem; }
  .service-card__link  { font-size: .76rem; }

  .brand-card { padding: 1.3rem .9rem; min-height: 0; }
  .brand-card__name   { font-size: 1.16rem; line-height: 1.2; }
  .brand-card__origin { font-size: .74rem; }
  .brand-card__desc   { font-size: .82rem; line-height: 1.5; }
  .brand-card__logo   { width: min(70%, 120px); margin-top: 1rem; }
}

/* Très petits écrans : on revient à une colonne, deux seraient illisibles. */
@media (max-width: 380px) {
  .brands__grid,
  .brands__grid--three { grid-template-columns: 1fr; }
}

/* ============================================================
   10. PAGE CONSEIL & VENTE — bento des maisons
   ============================================================ */
/* La place de chaque maison reflète son poids réel dans l'activité :
   Physiodermie occupe la plus grande surface. */
.bento {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.75rem, 1.4vw, 1.1rem);
}

.bento__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .6rem;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 210px;
  overflow: hidden;
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.bento__cell:hover { background: var(--paper); border-color: var(--accent-2); }

.bento__cell--xl { grid-column: span 3; grid-row: span 2; min-height: 460px; }
.bento__cell--md { grid-column: span 3; }
.bento__cell--sm { grid-column: span 2; min-height: 190px; }

.bento__logo {
  width: min(45%, 150px);
  height: auto;
  margin-bottom: auto;
  opacity: .78;
}
.bento__cell--xl .bento__logo { width: min(52%, 220px); }

.bento__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.16;
}
.bento__cell--xl .bento__name { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.bento__role {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.bento__desc {
  font-weight: 300;
  line-height: 1.68;
  color: var(--muted);
  font-size: .95rem;
  max-width: 46ch;
}
.bento__cell--xl .bento__desc { font-size: 1.02rem; }
.bento__cell--sm .bento__desc { font-size: .88rem; }

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--xl { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .bento__cell--md { grid-column: span 1; }
  .bento__cell--sm { grid-column: span 1; }
  .bento__cell--sm:last-child { grid-column: span 2; min-height: 160px; }
}
@media (max-width: 420px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell,
  .bento__cell--xl,
  .bento__cell--md,
  .bento__cell--sm,
  .bento__cell--sm:last-child { grid-column: span 1; min-height: 0; }
}

/* ---------- Diagnostic : les trois temps ------------------- */
.diag { padding-block: var(--section-y); background: var(--cream-2); }
.diag__grid {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.diag__step { border-top: 1px solid var(--accent-2); padding-top: 1.2rem; }
.diag__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  display: block;
  margin-bottom: .5rem;
}
.diag__step h3 { font-family: var(--font-display); font-size: 1.32rem; margin-bottom: .6rem; }
.diag__step p  { font-weight: 300; line-height: 1.72; color: var(--muted); font-size: .95rem; }

@media (max-width: 860px) { .diag__grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Bloc de texte courant -------------------------- */
.prose { max-width: 720px; margin: 0 auto; padding-inline: var(--gutter); }
.prose p { font-weight: 300; line-height: 1.85; margin-bottom: 1.2rem; }
.prose p.prose__lead { font-size: 1.12rem; color: var(--ink); }

/* ============================================================
   11. CARROUSELS MOBILE — univers et avis
   ============================================================ */
/* Sur smartphone, six univers puis trois avis empilés faisaient une page
   interminable. Défilement horizontal natif avec accroche : le pouce
   fait le travail, et une bande de la card suivante reste visible pour
   indiquer qu'il y a une suite. */
@media (max-width: 720px) {
  .services__grid,
  .testimonials__grid {
    display: flex;
    grid-template-columns: none;
    max-width: none;
    margin-inline: 0;
    gap: .9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter);
    padding-bottom: .4rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .services__grid::-webkit-scrollbar,
  .testimonials__grid::-webkit-scrollbar { display: none; }

  .services__grid > .service-card,
  .testimonials__grid > .testimonial {
    flex: 0 0 78%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .testimonials__grid > .testimonial { display: flex; flex-direction: column; }

  /* Le décalage d'apparition n'a plus de sens sur une seule ligne */
  .services__grid [data-reveal] { transition-delay: 0ms; }
}

/* ---------- Commandes du carrousel -------------------------- */
.carousel-ui {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-inline: var(--gutter);
}
@media (max-width: 720px) { .carousel-ui { display: flex; } }

.carousel-dots { display: flex; gap: .45rem; }
.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.carousel-dot[aria-current="true"] { background: var(--accent); transform: scale(1.35); }

/* Bouton pause : exigé dès qu'un contenu défile seul plus de cinq secondes */
.carousel-pause {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.carousel-pause:hover,
.carousel-pause:focus-visible { color: var(--ink); border-color: var(--accent); }
.carousel-pause svg { width: 11px; height: 11px; fill: currentColor; }

/* ============================================================
   12. MARQUES SUR MOBILE — le logo tient lieu de titre
   ============================================================ */
/* Sans survol possible, afficher le logo ET le nom faisait doublon.
   Le logo passe en haut, le nom est retiré de l'affichage mais reste
   dans le document : Google continue de l'indexer et les lecteurs
   d'écran l'annoncent toujours. */
@media (max-width: 720px) {
  .brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .9rem;
    padding: 1.6rem 1rem 1.4rem;
  }

  .brand-card__logo {
    order: -1;
    position: static;
    transform: none;
    opacity: 1;
    width: min(78%, 132px);
    max-height: 54px;
    object-fit: contain;
    object-position: center;
    margin: 0 0 .2rem;
  }

  .brand-card__body { display: flex; flex-direction: column; gap: .3rem; }

  /* Retiré de l'écran, conservé pour l'indexation et l'accessibilité */
  .brand-card__name {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .brand-card__origin { font-size: .7rem; letter-spacing: .16em; }
  .brand-card__desc   { font-size: .83rem; line-height: 1.55; margin: 0; }

  /* Plus de bascule au survol : le logo est déjà là en permanence */
  .brand-card:hover .brand-card__body,
  .brand-card:focus-within .brand-card__body { opacity: 1; }
  .brand-card:hover,
  .brand-card:focus-within { background: var(--cream-2); }
}

/* ============================================================
   13. UTILITAIRE + CONSEIL & VENTE — logos seuls, fin de page
   ============================================================ */
/* Retiré de l'écran, conservé dans le document (indexation, lecteurs
   d'écran). Utilisé pour les noms de marques quand le logo les remplace. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Le logo tient lieu de titre : on lui rend sa pleine présence */
.bento__logo { opacity: 1; margin-bottom: .6rem; }

/* Physiodermie : logo centré dans sa grande cellule, texte en dessous */
.bento__cell--xl { justify-content: center; align-items: center; text-align: center; }
.bento__cell--xl .bento__logo { width: min(64%, 300px); margin: 0 auto 1.6rem; }
.bento__cell--xl .bento__desc { margin-inline: auto; }

/* ---------- Aller plus loin -------------------------------- */
.next { padding-block: var(--section-y); }
.next__grid {
  max-width: 980px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.next__card {
  display: flex;
  flex-direction: column;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.next__card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.next__card:hover,
.next__card:focus-visible { border-color: var(--accent); }
.next__card:hover img { transform: scale(1.04); }

.next__body { display: flex; flex-direction: column; gap: .35rem; padding: clamp(1.2rem, 2.4vw, 1.8rem); }
.next__role  { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.next__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; }
.next__meta  { font-size: .88rem; font-weight: 300; color: var(--muted); }

@media (max-width: 640px) { .next__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .next__card img { transition: none; } }

/* ============================================================
   14. VIGNETTES « NOS UNIVERS » — masque sombre commun
   ============================================================ */
/* Un même voile sur les six images les harmonise, quelle que soit leur
   source. Réglable ici : --card-veil (opacité au repos) et
   --card-veil-hover (au survol, légèrement éclairci). */
:root {
  --card-veil:       .34;
  --card-veil-hover: .18;
}
.service-card__media { position: relative; }
.service-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 26, 25, calc(var(--card-veil) * .7)) 0%,
    rgba(28, 26, 25, var(--card-veil)) 100%);
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
.service-card__media img { filter: saturate(.9); }
.service-card:hover .service-card__media::after {
  background: linear-gradient(180deg,
    rgba(28, 26, 25, calc(var(--card-veil-hover) * .7)) 0%,
    rgba(28, 26, 25, var(--card-veil-hover)) 100%);
}

/* ============================================================
   15. AVIS — bouton « Laisser un avis sur Google »
   ============================================================ */
/* Bouton standard du site (.btn .btn--primary), sans variante :
   seul l'empilement bouton + lien est propre à cette section. */
.testimonials__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.testimonials__more { margin: 0; font-size: .88rem; font-weight: 300; }

/* ============================================================
   16. PAGE 404
   ============================================================ */
.notfound {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
  background: var(--cream);
}
.notfound__media { position: relative; overflow: hidden; }
.notfound__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.notfound__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 26, 25, .08), rgba(28, 26, 25, .22));
}
.notfound__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--section-y) + 4rem) clamp(2rem, 6vw, 6rem) var(--section-y);
  max-width: 640px;
}
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 13vw, 10rem);
  line-height: .9;
  color: var(--accent-2, var(--accent));
  opacity: .5;
  margin: 0 0 1.4rem;
}
.notfound__eyebrow {
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.notfound__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.notfound__lead {
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 2rem;
}
.notfound__links {
  list-style: none;
  padding: 0;
  margin: 0 0 2.4rem;
  display: grid;
  gap: .8rem;
}

@media (max-width: 860px) {
  .notfound { grid-template-columns: 1fr; min-height: 0; }
  .notfound__media { height: 42vh; min-height: 260px; }
  .notfound__body { padding: 2.6rem var(--gutter) var(--section-y); max-width: none; }
  .notfound__code { font-size: 5rem; margin-bottom: .8rem; }
}

/* ---------- Grilles ajustées (oct. 2026) --------------------
   Grille de maisons à deux cartes, et cellule de bento pleine
   largeur pour la dernière maison de la page Conseil & vente. */
.brands__grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 380px) { .brands__grid--two { grid-template-columns: 1fr; } }

.bento__cell--wide { grid-column: span 6; min-height: 170px; }
@media (max-width: 860px) { .bento__cell--wide { grid-column: span 2; min-height: 160px; } }
@media (max-width: 420px) { .bento__cell--wide { grid-column: span 1; min-height: 0; } }

/* Grille de trois maisons affichée sur deux colonnes : la dernière
   carte prend toute la largeur au lieu de laisser une case vide. */
@media (min-width: 381px) and (max-width: 1024px) {
  .brands__grid--three > .brand-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Deux maisons côte à côte sur la dernière rangée du bento. */
.bento__cell--half { grid-column: span 3; min-height: 170px; }
@media (max-width: 860px) { .bento__cell--half { grid-column: span 1; min-height: 160px; } }
@media (max-width: 420px) { .bento__cell--half { grid-column: span 1; min-height: 0; } }
