/* =========================================================
   DM Design — page « Optimisation de fiche Google My Business »
   Feuille propre à cette page (brouillon). Chargée uniquement sur elle par
   le mu-plugin dm-design-page-gmb, après la feuille du thème.
   Elle ne touche à aucune autre page : les règles visent des classes gmb-*
   qui n'existent que dans cette page, ou sont préfixées par la classe du
   corps de cette page (.page-optimiser-fiche-google-my-business). Les sections reprises
   de la page SEO (héros, constat, méthode, appel à l'action, FAQ,
   réservation) gardent les styles du thème tels quels.
   ========================================================= */

/* ---------- Héros : surtitre sur deux lignes, pastille calée sur la première ---------- */

.gmb-hero .surtitre { align-items: flex-start; }
.gmb-hero .surtitre::before { margin-top: 4px; }

/* ---------- Héros : fiche Google stylisée, dans la fenêtre de navigateur
   inclinée de la page SEO (.seo2-navigateur, styles du thème) ---------- */

.gmb-visuel { perspective: 1800px; }
.gmb-maps {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  color: var(--noir);
  font-size: 12px;
  line-height: 16px;
  text-align: left;
}
.gmb-panneau {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-bottom: 20px;
  border-right: 1px solid var(--gris-clair);
}
/* Photos en noir et blanc (médiathèque, WebP) : mêmes zones qu'avant ; minmax(0, …)
   empêche la taille naturelle des images d'élargir les colonnes ou les lignes. */
.gmb-photos {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3px;
  height: 132px;
}
.gmb-photos img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.gmb-photos img:first-child { grid-row: span 2; }
.gmb-identite { display: grid; gap: 5px; padding: 2px 16px 0; }
.gmb-nom { font-family: var(--titre); font-size: 18px; font-weight: 500; line-height: 24px; }
.gmb-note { display: flex; align-items: center; gap: 6px; }
.gmb-note b { font-weight: 600; }
.gmb-etoiles { color: var(--noir); letter-spacing: 1px; }
.gmb-note small,
.gmb-categorie { font-size: 11px; line-height: 14px; color: var(--gris); }
.gmb-actions {
  display: flex;
  justify-content: space-between;
  padding: 4px 24px 16px;
  border-bottom: 1px solid var(--gris-clair);
}
.gmb-action { display: grid; justify-items: center; gap: 6px; font-size: 10.5px; font-weight: 500; line-height: 12px; }
.gmb-action i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
}
.gmb-action svg { width: 16px; height: 16px; }
.gmb-action:first-child i { border-color: var(--noir); background: var(--noir); color: var(--blanc); }
.gmb-infos { display: grid; gap: 12px; padding: 0 16px; }
.gmb-info { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; }
.gmb-info > svg { width: 15px; height: 15px; margin-top: 1px; color: var(--gris); }
.gmb-info .serp-ligne { width: 80%; margin-top: 5px; }
.gmb-ouvert b { font-weight: 600; }
.gmb-horaires {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 14px;
  color: var(--gris-fonce);
}
.gmb-carte { position: relative; min-height: 420px; overflow: hidden; }
.gmb-carte .seo2-plan { position: absolute; inset: 0; min-height: 0; border-radius: 0; }
.gmb-carte .serp-recherche {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 36px;
  padding: 0 14px;
  background: var(--blanc);
  font-size: 12px;
}
.gmb-bulle {
  position: absolute;
  top: calc(24% - 1px);
  left: calc(32% + 24px);
  padding: 4px 10px;
  border-radius: var(--rayon-bouton);
  background: var(--noir);
  color: var(--blanc);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}

/* ---------- Résultats clients : deux cartes sombres mises en avant ---------- */

.section.gmb-resultats { padding: 40px 0 130px; text-align: center; }
.gmb-resultats .titre-section { max-width: 900px; margin-inline: auto; }
.gmb-resultats-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 56px auto 0;
  text-align: left;
}
.gmb-resultat {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 52px 52px 40px;
  border-radius: var(--rayon);
  background: var(--degrade-sombre);
  color: var(--fumee);
  overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55);
}
.gmb-resultat::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: var(--halo);
  opacity: .7;
  pointer-events: none;
}
.gmb-resultat-valeur {
  margin: 0;
  font-family: var(--titre);
  font-size: 88px;
  font-weight: 400;
  line-height: 92px;
  letter-spacing: -0.035em;
  color: var(--blanc);
  white-space: nowrap;
}
.gmb-resultat-valeur em { font-style: normal; font-weight: 300; color: var(--taupe); }
.gmb-resultat-libelle {
  max-width: 380px;
  margin: 18px 0 0;
  font-family: var(--titre);
  font-size: 22px;
  line-height: 30px;
  color: var(--blanc);
}
.gmb-resultat-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 44px;
  font-family: var(--titre);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gris-clair);
}
.gmb-resultat-note::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--taupe);
  box-shadow: 0 0 0 4px rgba(201, 186, 172, .18);
}
.gmb-resultats-mention {
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--gris);
}

/* ---------- Les 10 points : bande claire, cartes numérotées sur 2 colonnes ---------- */

.section.gmb-points-section { padding: 120px 0; border-radius: var(--rayon-bande); background: var(--fumee); }
.gmb-points-intro { max-width: 900px; }
.gmb-points-intro .titre-section { margin-bottom: 24px; font-size: 52px; line-height: 60px; }
.gmb-points-intro p:not(.surtitre) { max-width: 720px; font-size: 17px; line-height: 27px; }
.gmb-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.gmb-point {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 32px 76px 32px 28px;
  border-radius: var(--rayon);
  background: var(--blanc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
  transition: box-shadow .35s;
}
.gmb-point:hover { box-shadow: inset 0 0 0 1px var(--noir); }
.gmb-numero {
  margin: 0;
  font-family: var(--titre);
  font-size: 40px;
  font-weight: 400;
  line-height: 40px;
  color: transparent;
  -webkit-text-stroke: 1px var(--noir);
  transition: color .35s;
}
.gmb-point:hover .gmb-numero,
.gmb-point.ouvert .gmb-numero { color: var(--noir); }
.gmb-point h3 { margin: 2px 0 6px; font-size: 20px; font-weight: 500; line-height: 28px; color: var(--noir); }
.gmb-point p { margin: 0; font-size: 15px; line-height: 25px; color: var(--graphite); }
.gmb-point p.gmb-benefice { font-weight: 500; text-wrap: balance; }

/* Cartes dépliables : le titre devient un bouton (ajouté par le script) dont la
   zone cliquable couvre toute la carte. Sans script, tout reste déplié. */
.gmb-points { align-items: start; }
.gmb-point-bouton {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.gmb-point-bouton::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.gmb-point-bouton:focus-visible { outline: none; }
.gmb-point:has(.gmb-point-bouton:focus-visible) { box-shadow: inset 0 0 0 2px var(--noir); }
.gmb-point-fleche {
  position: absolute;
  top: 30px;
  right: 26px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gris-clair);
  border-radius: 50%;
  color: var(--noir);
  transition: transform .4s var(--courbe), background-color .3s, border-color .3s, color .3s;
}
.gmb-point-fleche svg { width: 12px; height: 12px; }
.gmb-point:hover .gmb-point-fleche { border-color: var(--noir); }
.gmb-point.ouvert .gmb-point-fleche { border-color: var(--noir); background: var(--noir); color: var(--blanc); transform: rotate(180deg); }
/* En-tête (titre + bénéfice) : même hauteur minimale sur toutes les cartes,
   calculée pour un titre sur 2 lignes (2 × 28 px, marge de 6 px, bénéfice de
   25 px), pour que les cartes fermées d'une même rangée aient la même hauteur. */
@media (min-width: 1025px) {
  .gmb-point-entete { min-height: calc(2 * 28px + 6px + 25px); }
}
/* Entre 1 025 et 1 365 px, les cartes sont plus étroites et certains titres
   passent sur 3 lignes : l'en-tête est calculé pour un titre sur 3 lignes. */
@media (min-width: 1025px) and (max-width: 1365px) {
  .gmb-point-entete { min-height: calc(3 * 28px + 6px + 25px); }
}
/* Entre 1 025 et 1 131 px, certaines lignes de bénéfice passent aussi sur
   2 lignes : l'en-tête est calculé pour 3 lignes de titre et 2 de bénéfice. */
@media (min-width: 1025px) and (max-width: 1131px) {
  .gmb-point-entete { min-height: calc(3 * 28px + 6px + 2 * 25px); }
}
/* Texte détaillé : repli réel, il n'occupe aucune hauteur une fois fermé
   (ligne de grille à 0fr, contenu en overflow hidden, aucune marge). */
.gmb-point-detail { display: grid; grid-template-rows: 1fr; margin: 0; }
.gmb-point-detail-contenu { position: relative; z-index: 1; min-height: 0; margin: 0; overflow: hidden; }
.gmb-point-detail-contenu p { padding-top: 14px; }
.js .gmb-point-detail {
  grid-template-rows: 0fr;
  overflow: hidden;
  visibility: hidden;
  transition: grid-template-rows .45s var(--courbe), visibility 0s .45s;
}
.js .gmb-point-detail-contenu { opacity: 0; transition: opacity .25s; }
.js .gmb-point.ouvert .gmb-point-detail { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.js .gmb-point.ouvert .gmb-point-detail-contenu { opacity: 1; transition: opacity .45s .1s; }
@media (prefers-reduced-motion: reduce) {
  .js .gmb-point-detail,
  .js .gmb-point-detail-contenu,
  .gmb-point-fleche { transition: none; }
}
.gmb-point a {
  color: var(--noir);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(28, 28, 28, .35);
  text-underline-offset: 3px;
  transition: text-decoration-color .3s;
}
.gmb-point a:hover { text-decoration-color: var(--noir); }

/* ---------- Audit : texte à gauche, carte « ce que l'audit passe en revue » ---------- */

.gmb-audit .deux-colonnes { grid-template-columns: minmax(0, 1fr) 500px; gap: 96px; }
.gmb-audit .titre-section { margin-bottom: 28px; font-size: 52px; line-height: 60px; }
.gmb-audit .texte > p:not(.surtitre) { max-width: 560px; }
.gmb-audit-carte {
  padding: 40px 40px 26px;
  border-radius: var(--rayon);
  background: var(--blanc);
  box-shadow: 0 0 0 1px var(--gris-clair), 0 40px 70px -40px rgba(0, 0, 0, .25);
}
.gmb-audit-titre { margin: 0 0 18px; font-family: var(--titre); font-size: 20px; font-weight: 500; line-height: 28px; color: var(--noir); }
ul.gmb-audit-liste { margin: 0; padding: 0; list-style: none; }
ul.gmb-audit-liste li {
  position: relative;
  padding: 16px 0 16px 38px;
  border-top: 1px solid var(--gris-clair);
  font-size: 15px;
  line-height: 24px;
}
ul.gmb-audit-liste li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--noir) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
ul.gmb-audit-liste strong { color: var(--noir); font-weight: 600; }

/* ---------- Optimisation ou gestion : les cartes de la page SEO, sur 2 colonnes ---------- */

.gmb-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; }
ul.gmb-carte-liste {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
ul.gmb-carte-liste li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 23px; color: rgba(245, 245, 245, .85); }
ul.gmb-carte-liste li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--taupe);
}
.gmb-formules-note { margin-top: 40px; font-size: 14px; line-height: 22px; color: var(--gris); }

/* ---------- Pour qui : étiquettes de métiers ---------- */

.section.gmb-pour-qui { padding-bottom: 40px; text-align: center; }
.gmb-pour-qui .titre-section { max-width: 900px; margin-inline: auto; }
ul.gmb-metiers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 980px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}
ul.gmb-metiers li {
  padding: 11px 20px;
  border: 1px solid var(--gris-clair);
  border-radius: var(--rayon-bouton);
  background: var(--blanc);
  font-family: var(--titre);
  font-size: 15px;
  line-height: 22px;
  color: var(--noir);
  transition: border-color .3s;
}
ul.gmb-metiers li:hover { border-color: var(--noir); }

/* ---------- Appel à l'action (section reprise de la page SEO) ----------
   Sur tablette (641 à 1 024 px), le haut du téléphone recouvrait la ligne
   « Gratuit et sans engagement… » : plus d'espace sous le texte (24 → 66 px),
   pour garder le même écart qu'en mobile (18 px). Limité à cette page. */
@media (min-width: 641px) and (max-width: 1024px) {
  .page-optimiser-fiche-google-my-business .seo2-cta-texte { padding-bottom: 66px; }
}

/* ---------- Notre méthode (section reprise de la page SEO) ----------
   Sur cette page : étapes resserrées sur ordinateur (140 px entre deux étapes
   au lieu d'environ 42 % de la hauteur d'écran), moins de blanc après l'étape
   05, et étapes pas encore atteintes lisibles (55 % d'opacité au lieu de 28 %).
   Colonne de gauche fixe, ligne, points et activation au défilement : thème. */
.page-optimiser-fiche-google-my-business .seo2-methode { padding-bottom: 24px; }
.js .page-optimiser-fiche-google-my-business .seo2-etapes > * > * { opacity: .55; }
.js .page-optimiser-fiche-google-my-business .seo2-etapes > .atteinte > * { opacity: 1; }
@media (min-width: 1025px) {
  .page-optimiser-fiche-google-my-business .seo2-etapes > *,
  .page-optimiser-fiche-google-my-business .seo2-etapes > :first-child { min-height: 0; padding-bottom: 140px; }
  .page-optimiser-fiche-google-my-business .seo2-etapes > :last-child { min-height: 0; padding-bottom: 0; }
}

/* ---------- Responsive (mêmes points de rupture que le thème) ---------- */

@media (max-width: 1180px) {
  .gmb-maps { grid-template-columns: 270px minmax(0, 1fr); }
  .gmb-resultat-valeur { font-size: 72px; line-height: 78px; }
  .gmb-audit .deux-colonnes { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; }
}

@media (max-width: 1024px) {
  .gmb-resultats-grille { grid-template-columns: 1fr; max-width: 560px; }
  .section.gmb-points-section { border-radius: 48px; }
  .gmb-points-intro .titre-section,
  .gmb-audit .titre-section { font-size: 44px; line-height: 52px; }
  .gmb-points { grid-template-columns: 1fr; }
  .gmb-audit .deux-colonnes { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .gmb-maps { grid-template-columns: 1fr; }
  .gmb-panneau { border-right: 0; }
  .gmb-carte { display: none; }
  .gmb-photos { height: 110px; }
  .section.gmb-resultats { padding: 24px 0 88px; }
  .gmb-resultats-grille { gap: 16px; margin-top: 40px; }
  .gmb-resultat { padding: 36px 26px 30px; }
  .gmb-resultat-valeur { font-size: 54px; line-height: 58px; }
  .gmb-resultat-libelle { font-size: 19px; line-height: 27px; }
  .gmb-resultat-note { padding-top: 32px; }
  .section.gmb-points-section { padding: 88px 0; border-radius: 40px; }
  .gmb-points-intro .titre-section,
  .gmb-audit .titre-section { font-size: 34px; line-height: 42px; }
  .gmb-points-intro p:not(.surtitre) { font-size: 16px; line-height: 25px; }
  .gmb-points { gap: 14px; margin-top: 40px; }
  .gmb-point { grid-template-columns: 1fr; gap: 10px; padding: 26px 22px 26px; }
  .gmb-point-fleche { top: 24px; right: 20px; }
  .gmb-numero { font-size: 34px; line-height: 34px; }
  .gmb-point h3 { font-size: 19px; line-height: 26px; }
  .section.gmb-audit { padding-bottom: 88px; }
  .gmb-audit-carte { padding: 28px 22px 16px; }
  .gmb-cartes { grid-template-columns: 1fr; }
  .section.gmb-pour-qui { padding-bottom: 24px; }
  ul.gmb-metiers { gap: 8px; margin-top: 36px; }
  ul.gmb-metiers li { padding: 9px 16px; font-size: 14px; }
}
