/* Presenz Review — badge et bloc d'avis. Couleurs et arrondi : variables posées par le plugin (réglages). */
.pr-badge, .pr-avis, .pr-modal { --pr-etoiles: #fbbc04; --pr-fond: #f3f3f3; --pr-texte: #1f1f1f; --pr-bouton: #1f1f1f; --pr-arrondi: 12px; --pr-colonnes: 4; color: var(--pr-texte); }
.pr-badge *, .pr-avis *, .pr-modal * { box-sizing: border-box; }

/* Les thèmes (Flatsome, Astra…) stylent tous les <button> : majuscules, hauteur minimale, marges.
   On neutralise ici (spécificité 0,1,1) ; chaque bouton du plugin est ensuite stylé avec 0,2,0 ou plus. */
.pr-avis button, .pr-modal button, button.pr-badge { margin: 0; padding: 0; min-height: 0; max-width: none; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; line-height: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; text-align: inherit; vertical-align: middle; transition: none; cursor: pointer; }

/* étoiles remplies à la note exacte */
.pr-etoiles { position: relative; display: inline-block; flex: none; width: 5em; height: 1em; font-size: 1.15em; line-height: 1; vertical-align: -.12em; }
.pr-etoiles svg { display: block; width: 5em; height: 1em; fill: currentColor; }
.pr-etoiles-fond { display: block; color: #dadce0; }
.pr-etoiles-plein { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; color: var(--pr-etoiles); }

/* badge : logo Google, note, étoiles, nombre d'avis */
.pr-badge.pr-badge { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; line-height: 1.2; vertical-align: middle; }
.pr-badge-note { font-weight: 700; font-size: 1.25em; }
.pr-badge-total { font-size: .88em; opacity: .75; text-decoration: underline; text-underline-offset: 2px; }
a.pr-badge:hover .pr-badge-total { opacity: 1; }
.pr-badge.pr-badge--carte { background: #fff; padding: 10px 16px; border-radius: var(--pr-arrondi); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.08); }
.pr-logo { flex: none; display: block; }
.pr-badge-ligne { display: contents; }
button.pr-badge:focus-visible { outline: 2px solid #4285f4; outline-offset: 4px; border-radius: 6px; }

/* badge empilé : logo, grande note + étoiles, nombre d'avis dessous */
.pr-badge.pr-badge--empile { flex-direction: column; gap: 6px; text-align: center; }
.pr-badge--empile .pr-badge-ligne { display: flex; align-items: center; gap: 10px; }
.pr-badge--empile .pr-badge-ligne { gap: 8px; }
.pr-badge--empile .pr-badge-note { font-size: 1.6em; line-height: 1; }
.pr-badge--empile .pr-etoiles { font-size: 1.45em; vertical-align: middle; }
.pr-badge--empile .pr-badge-total { text-decoration: none; opacity: .6; }
button.pr-badge:hover .pr-badge-total { opacity: 1; text-decoration: underline; }

/* fenêtre de tous les avis */
.pr-modal { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--pr-texte); font-size: 15px; line-height: 1.55; box-shadow: 0 24px 80px rgba(0,0,0,.35); overflow: hidden; }
.pr-modal::backdrop { background: rgba(0,0,0,.6); }
html:has(.pr-modal[open]) { overflow: hidden; }
.pr-modal-boite { position: relative; display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.pr-modal .pr-modal-fermer { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #555; font-size: 26px; line-height: 1; }
.pr-modal .pr-modal-fermer:hover { background: #f1f1f1; color: #111; }
.pr-modal .pr-modal-fermer:focus:not(:focus-visible) { outline: none; }
.pr-modal-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 64px 0 40px; padding: 40px 0 22px; border-bottom: 1px solid #e6e6e6; }
.pr-modal-titre { display: flex; align-items: baseline; gap: 6px; font-size: 20px; font-weight: 600; }
.pr-mot-google { font-family: "Product Sans", Arial, sans-serif; font-size: 24px; font-weight: 500; letter-spacing: -.5px; }
.pr-modal-note { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pr-modal-note strong { font-size: 20px; }
.pr-modal-note .pr-etoiles { font-size: 22px; }
.pr-modal-avis .pr-etoiles { font-size: 18px; }
.pr-modal-total { font-size: 12px; opacity: .6; }
.pr-modal .pr-modal-bouton { flex: none; padding: 11px 22px; line-height: 1.3; border-radius: 6px; background: #4285f4; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.pr-modal .pr-modal-bouton:hover { background: #3367d6; color: #fff; }
.pr-modal-liste { overflow-y: auto; padding: 0 40px 24px; overscroll-behavior: contain; }
.pr-modal-avis { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-bottom: 1px solid #e6e6e6; }
.pr-modal-avis:last-child { border-bottom: 0; }
.pr-modal-texte { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.pr-modal-source { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.3; opacity: .85; }
.pr-modal-source span { display: flex; flex-direction: column; color: #777; }
.pr-modal-source strong { color: #4285f4; font-weight: 500; font-size: 14px; }
@media (max-width: 600px) {
	.pr-modal { border-radius: 16px; }
	.pr-modal-tete { margin: 0 20px; padding-top: 52px; }
	.pr-modal-liste { padding: 0 20px 16px; }
	.pr-modal .pr-modal-bouton { width: 100%; text-align: center; }
}

/* bloc d'avis */
.pr-avis { margin: 2em 0; font-size: 15px; line-height: 1.5; }
.pr-entete { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; text-align: center; }
.pr-titre { margin: 0; font-size: 1.5em; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.pr-titre--petit { font-size: 1.15em; }
.pr-titre--grand { font-size: 2.1em; }
.pr-titre--normal { text-transform: none; letter-spacing: 0; }
.pr-resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; }
.pr-resume-note { font-weight: 700; font-size: 1.2em; }
.pr-resume-total { opacity: .75; }
.pr-bouton { margin-left: 6px; display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--pr-bouton); color: #fff !important; text-decoration: none; font-weight: 600; font-size: .9em; }

.pr-defilement { position: relative; }
.pr-avis { max-width: 100%; min-width: 0; }
/* autant de colonnes que la place permet (cartes de 230 px minimum), sans dépasser le réglage */
.pr-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(230px, (100% - (var(--pr-colonnes) - 1) * 20px) / var(--pr-colonnes))), 1fr)); gap: 20px; }
.pr-avis--liste .pr-liste { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.pr-carte { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--pr-fond); border-radius: var(--pr-arrondi); }
.pr-carte[hidden] { display: none; }
.pr-carte-tete { display: flex; align-items: center; gap: 12px; }
.pr-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 18px; object-fit: cover; }
.pr-qui { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-auteur { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-date { font-size: .82em; opacity: .6; }
.pr-texte { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pr-ouverte .pr-texte { display: block; -webkit-line-clamp: unset; }
.pr-avis .pr-lire { display: none; align-self: flex-start; margin-top: -6px; padding: 0; border: 0; background: none; color: inherit; opacity: .6; font: inherit; font-size: .92em; cursor: pointer; }
.pr-avis .pr-lire:hover { opacity: 1; }
.pr-longue .pr-lire { display: inline; }
.pr-reponse { font-size: .9em; padding-left: 12px; border-left: 3px solid rgba(0,0,0,.12); opacity: .85; }
.pr-reponse strong { display: block; font-size: .92em; }
.pr-avis .pr-plus { display: block; margin: 24px auto 0; padding: 10px 44px; border: 0; border-radius: 999px; background: var(--pr-fond); color: inherit; font: inherit; font-weight: 600; font-size: .9em; cursor: pointer; }
.pr-avis .pr-plus:hover { filter: brightness(.95); }

/* carrousel : défilement horizontal avec flèches */
.pr-avis--carrousel .pr-liste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.pr-avis--carrousel .pr-liste::-webkit-scrollbar { display: none; }
.pr-avis--carrousel .pr-carte { flex: 0 0 calc((100% - (var(--pr-colonnes) - 1) * 20px) / var(--pr-colonnes)); min-width: 250px; scroll-snap-align: start; }
.pr-avis .pr-fleche { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #1f1f1f; box-shadow: 0 2px 10px rgba(0,0,0,.15); font-size: 24px; line-height: 1; cursor: pointer; }
.pr-prec { left: -12px; } .pr-suiv { right: -12px; }

@media (max-width: 600px) {
	.pr-avis--carrousel .pr-carte { flex-basis: 85%; }
	.pr-fleche { display: none; }
}

/* badge flottant (coin de l'écran, toutes les pages) */
.pr-flottant { position: fixed; bottom: 20px; z-index: 99990; }
.pr-flottant--droite { right: 20px; }
.pr-flottant--gauche { left: 20px; }
.pr-flottant .pr-badge.pr-badge--carte { padding: 10px 16px; border-radius: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.16); }
.pr-flottant .pr-badge-total { text-decoration: none; }
.pr-flottant .pr-flottant-fermer { position: absolute; top: -8px; right: -8px; display: none; place-items: center; width: 22px; height: 22px; margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); color: #555; font: 15px/1 sans-serif; text-transform: none; cursor: pointer; }
.pr-flottant:hover .pr-flottant-fermer, .pr-flottant:focus-within .pr-flottant-fermer { display: grid; }
@media (hover: none) { .pr-flottant .pr-flottant-fermer { display: grid; } }
.pr-flottant[hidden] { display: none; }
@media (max-width: 600px) {
	.pr-flottant { bottom: 12px; }
	.pr-flottant--droite { right: 12px; } .pr-flottant--gauche { left: 12px; }
	.pr-flottant--sans-mobile { display: none; }
}

/* plusieurs magasins : onglets, nom du magasin, choix du magasin pour l'avis */
.pr-onglets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.pr-avis .pr-onglet, .pr-modal .pr-onglet { padding: 7px 14px; border: 1px solid rgba(0,0,0,.14); border-radius: 999px; background: #fff; color: inherit; font-size: .88em; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.pr-avis .pr-onglet:hover, .pr-modal .pr-onglet:hover { border-color: rgba(0,0,0,.35); }
.pr-avis .pr-onglet--actif, .pr-modal .pr-onglet--actif { background: var(--pr-bouton); border-color: var(--pr-bouton); color: #fff; }
.pr-onglet-note { margin-left: 4px; font-weight: 400; opacity: .65; }
.pr-onglet--actif .pr-onglet-note { opacity: .85; }
.pr-carte-lieu { display: inline-block; width: max-content; max-width: 100%; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: rgba(0,0,0,.06); font-size: .75em; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-modal-onglets { margin: 16px 64px 0 40px; }
.pr-modal-onglets .pr-onglets { justify-content: flex-start; margin: 0; }
.pr-modal-avis[hidden] { display: none; }
.pr-avis .pr-plus[hidden] { display: none; }
.pr-choix { position: relative; display: inline-block; }
.pr-choix > summary { list-style: none; cursor: pointer; }
.pr-choix > summary::-webkit-details-marker { display: none; }
.pr-choix > summary::after { content: " ▾"; font-size: .85em; }
.pr-choix-liste { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: flex; flex-direction: column; min-width: 230px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 10px 34px rgba(0,0,0,.2); text-align: left; }
.pr-choix-titre { padding: 6px 10px; font-size: 12px; color: #5f6368; }
.pr-choix-liste a { padding: 9px 10px; border-radius: 8px; color: #1f1f1f; font-weight: 500; text-decoration: none; }
.pr-choix-liste a:hover { background: #f1f3f4; }
@media (max-width: 600px) {
	.pr-modal-onglets { margin: 14px 20px 0; }
	.pr-choix--modal { width: 100%; }
	.pr-choix--modal .pr-choix-liste { left: 0; right: 0; }
}
