.sgp-avis360 {
    font-family: var(--sgp-avis360-font, "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
    color: #16202a;
    --sgp-avis360-primary: #0f62fe;
    --sgp-avis360-muted: #5f6b7c;
    --sgp-avis360-border: #e3e8ef;
    --sgp-avis360-bg: #ffffff;
}

.sgp-avis360 * {
    box-sizing: border-box;
}

.sgp-avis360 .sgp-avis-360-widget,
.sgp-avis360 .sgp-avis-badge,
.sgp-avis360 .sgp-carousel,
.sgp-avis360 .sgp-hero-widget,
.sgp-avis360 .sgp-month-summary {
    background: var(--sgp-avis360-bg);
    border: 1px solid var(--sgp-avis360-border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(15, 15, 30, 0.07);
}

.sgp-avis360 .sgp-summary-content {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.sgp-avis360 .sgp-summary-content .sgp-stars {
    font-size: 1.8rem;
    color: var(--sgp-avis360-primary);
}

.sgp-avis360 .sgp-summary-content .sgp-count {
    color: var(--sgp-avis360-muted);
    font-size: 0.95rem;
}

.sgp-avis360 .sgp-reviews {
    display: grid;
    gap: 1rem;
}

.sgp-avis360 .sgp-review {
    border: 1px solid var(--sgp-avis360-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: #f8fafc;
}

.sgp-avis360 .sgp-review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.sgp-avis360 .sgp-review-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sgp-avis360 .sgp-review .sgp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.sgp-avis360 .sgp-avatar-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sgp-avis360-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.sgp-avis360 .sgp-review .sgp-author {
    font-size: 1rem;
}

.sgp-avis360 .sgp-review .sgp-stars {
    color: #f5b301;
    font-weight: 600;
}

.sgp-avis360 .sgp-review .sgp-date {
    font-size: 0.85rem;
    color: var(--sgp-avis360-muted);
    margin-bottom: 0.35rem;
}

.sgp-avis360 .sgp-review .sgp-text {
    line-height: 1.55;
    color: #1f2a37;
}

.sgp-avis360 .sgp-avis-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sgp-avis360 .sgp-avis-badge-rating {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--sgp-avis360-primary);
}

.sgp-avis360 .sgp-avis-badge-count {
    color: var(--sgp-avis360-muted);
    font-size: 0.95rem;
}

.sgp-avis360 .sgp-avis-badge-source,
.sgp-avis360 .sgp-hero-cta,
.sgp-avis360 .sgp-badge-cta {
    color: var(--sgp-avis360-primary);
    font-weight: 600;
    text-decoration: none;
}

.sgp-avis360 .sgp-carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

/* Carousel mode scroll-snap */
.sgp-avis360.sgp-carousel--scroll .sgp-carousel {
    position: relative;
}

.sgp-avis360.sgp-carousel--scroll .sgp-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.sgp-avis360.sgp-carousel--scroll .sgp-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    scroll-snap-align: start;
    padding: 0.25rem 0;
}

.sgp-avis360.sgp-carousel--scroll .sgp-carousel-card {
    flex: 0 0 calc((100% - 2rem) / 3);
    min-width: 200px;
    scroll-snap-align: start;
}

@media (min-width: 900px) {
    .sgp-avis360.sgp-carousel--scroll[data-sgp-cards="4"] .sgp-carousel-card {
        flex: 0 0 calc((100% - 3rem) / 4);
    }
    .sgp-avis360.sgp-carousel--scroll[data-sgp-cards="2"] .sgp-carousel-card {
        flex: 0 0 calc((100% - 1rem) / 2);
    }
    .sgp-avis360.sgp-carousel--scroll[data-sgp-cards="1"] .sgp-carousel-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 640px) {
    .sgp-avis360.sgp-carousel--scroll .sgp-carousel-card {
        flex: 0 0 calc(100% - 2rem);
        min-width: 260px;
    }
}

/* ========== CAROUSEL NAV BUTTONS (visible default + centered chevrons) ========== */

.sgp-scope .sgp-avis360-carousel__btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;

  /* Visible even when not hovered */
  background-color: rgba(0, 0, 0, .06) !important;
  border: 1px solid rgba(0, 0, 0, .14) !important;
  color: rgba(0, 0, 0, .70) !important;

  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  z-index: 5;

  box-shadow: none !important;
  outline: none;

  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

/* Chevron glyph centering (characters like ‹ › are baseline-weird) */
.sgp-scope .sgp-avis360-carousel__btn > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 22px;              /* make it readable */
  transform: translateY(-1px);  /* micro-fix for vertical centering */
}

/* Positions */
.sgp-scope .sgp-avis360-carousel__btn--prev { left: 12px; }
.sgp-scope .sgp-avis360-carousel__btn--next { right: 12px; }

/* Hover/focus: still no blue, and NEVER transparent */
.sgp-scope .sgp-avis360-carousel__btn:hover,
.sgp-scope .sgp-avis360-carousel__btn:focus,
.sgp-scope .sgp-avis360-carousel__btn:focus-visible {
  background-color: rgba(0, 0, 0, .12) !important;
  border-color: rgba(0, 0, 0, .22) !important;
  color: rgba(0, 0, 0, .80) !important;
  box-shadow: none !important;
}

/* Prevent any theme/Elementor hover transform */
.sgp-scope .sgp-avis360-carousel__btn:hover,
.sgp-scope .sgp-avis360-carousel__btn:active {
  transform: translateY(-50%) !important;
}

.sgp-avis360.sgp-carousel--scroll .sgp-carousel-footer {
    margin-top: 1rem;
    text-align: center;
}

.sgp-avis360 .sgp-carousel-card {
    border: 1px solid var(--sgp-avis360-border);
    border-radius: 12px;
    padding: 1rem;
    background: #fdfefe;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sgp-avis360 .sgp-carousel-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.sgp-avis360 .sgp-carousel-meta {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.sgp-avis360 .sgp-carousel .sgp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sgp-avis360 .sgp-carousel .sgp-author {
    font-weight: 600;
}

.sgp-avis360 .sgp-carousel .sgp-date {
    font-size: 0.85rem;
    color: var(--sgp-avis360-muted);
}

.sgp-avis360 .sgp-carousel .sgp-stars {
    color: #f5b301;
    font-weight: 600;
}

.sgp-avis360 .sgp-hero-widget {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: center;
}

.sgp-avis360 .sgp-hero-rating {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--sgp-avis360-primary);
}

.sgp-avis360 .sgp-hero-count {
    color: var(--sgp-avis360-muted);
    margin-bottom: 1rem;
}

.sgp-avis360 .sgp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--sgp-avis360-primary);
    transition: background 0.2s;
}

.sgp-avis360 .sgp-hero-cta:hover,
.sgp-avis360 .sgp-hero-cta:focus {
    background: var(--sgp-avis360-primary);
    color: #fff;
}

.sgp-avis360 .sgp-hero-highlight,
.sgp-avis360 .sgp-featured-review {
    border: 1px solid var(--sgp-avis360-border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    background: #f8fafc;
}

.sgp-avis360 .sgp-highlight-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.sgp-avis360 .sgp-month-summary h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.sgp-avis360 .sgp-month-summary .sgp-text {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #1f2a37;
}

@media (max-width: 640px) {
    .sgp-avis360 .sgp-avis-badge {
        flex-direction: column;
        align-items: flex-start;
    }

    .sgp-avis360 .sgp-summary-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}

/* SGP Avis 360 size overrides (structure only, no sgp-dl-* targeting) */
.sgp-scope.sgp-avis360--hero .sgp-stars-icons {
    gap: 0.15rem;
}

.sgp-scope.sgp-avis360--hero .sgp-stars-value {
    font-size: 2.2rem;
}

.sgp-scope.sgp-avis360--hero .sgp-star {
    font-size: 0.95rem;
}

.sgp-scope.sgp-avis360--badge .sgp-stars-icons {
    gap: 0.15rem;
}

.sgp-scope.sgp-avis360--badge .sgp-stars-value {
    font-size: 1.55rem;
}

.sgp-scope.sgp-avis360--badge .sgp-star {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .sgp-scope.sgp-avis360--hero .sgp-stars-value {
        font-size: 2.0rem;
    }

    .sgp-scope.sgp-avis360--hero .sgp-star {
        font-size: 0.9rem;
    }

    .sgp-scope.sgp-avis360--badge .sgp-stars-value {
        font-size: 1.45rem;
    }

    .sgp-scope.sgp-avis360--badge .sgp-star {
        font-size: 0.75rem;
    }
}
/* End SGP Avis 360 DL size overrides */

/* SGP Avis 360 Hero + Badge UI refinements */
.sgp-scope.sgp-avis360--hero .sgp-hero-widget {
    padding: 1rem 1.1rem;
    gap: 0.9rem;
}

.sgp-scope.sgp-avis360--hero .sgp-hero-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sgp-scope.sgp-avis360--hero .sgp-avis360-title {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sgp-avis360-muted);
}

.sgp-scope.sgp-avis360--hero .sgp-avis360-all {
    align-self: flex-start;
}

.sgp-scope.sgp-avis360--badge .sgp-avis-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.sgp-scope.sgp-avis360--badge .sgp-avis-badge-rating,
.sgp-scope.sgp-avis360--badge .sgp-avis-badge-count,
.sgp-scope.sgp-avis360--badge .sgp-badge-cta,
.sgp-scope.sgp-avis360--badge .sgp-avis-badge-source {
    align-self: center;
}

@media (max-width: 768px) {
    .sgp-scope.sgp-avis360--hero .sgp-hero-widget {
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }

    .sgp-scope.sgp-avis360--badge .sgp-avis-badge {
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
}
/* End SGP Avis 360 Hero + Badge UI refinements */

/* SGP Avis 360 Badge alignment */
.sgp-scope.sgp-avis360--badge .sgp-avis-badge {
    display: flex;
    align-items: center;
    padding-right: 1.25rem;
}

.sgp-scope.sgp-avis360--badge .sgp-badge-cta {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .sgp-scope.sgp-avis360--badge .sgp-avis-badge {
        padding-right: 0.75rem;
    }
}
/* End SGP Avis 360 Badge alignment */

.sgp-avis360 .sgp-stars-icons {
    display: inline-flex;
    gap: 0.2rem;
}

.sgp-avis360 .sgp-stars-value {
    font-weight: 700;
}

.sgp-avis360 .sgp-star {
    font-size: 0.95em;
    line-height: 1;
}

.sgp-avis360 .sgp-star--filled {
    color: #f5b301;
}

.sgp-avis360 .sgp-star--empty {
    color: #cbd5e1;
}

.sgp-avis360__clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 260ms ease, opacity 200ms ease;
    opacity: 0.95;
}

.sgp-avis360__clamp--expanded {
    display: block;
    -webkit-line-clamp: initial;
    opacity: 1;
}

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

.sgp-avis360 .sgp-read-more {
    margin-top: 0.5rem;
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none;
    line-height: inherit;
}

.sgp-avis360 .sgp-summary-cta {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.sgp-avis360 .sgp-avis360-empty {
    border: 1px dashed var(--sgp-avis360-border);
    background: #f8fafc;
    padding: 1rem 1.25rem;
}

/* List collapse / expand (FAQ-like) */
.sgp-scope .sgp-avis360-list__more {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 320ms ease, opacity 220ms ease;
    display: grid;
    gap: 1rem;
    grid-column: 1 / -1;
}

.sgp-scope .sgp-avis360-list__more.is-open {
    opacity: 1;
}

.sgp-scope .sgp-avis360-list__toggle {
    margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .sgp-scope .sgp-avis360-list__more {
        transition: none;
    }
}

.sgp-avis360 .sgp-empty-title {
    font-weight: 600;
}

.sgp-avis360 .sgp-empty-text {
    color: var(--sgp-avis360-muted);
    margin-top: 0.35rem;
}




.sgp-scope.sgp-avis360--hero .sgp-hero-widget{
  padding: 16px !important;
}
.sgp-scope.sgp-avis360--hero .sgp-hero-left{
  gap: 10px !important;
}
.sgp-scope.sgp-avis360--hero .sgp-hero-highlight{
  margin-top: 0 !important;
}

.sgp-scope.sgp-avis360--hero .sgp-hero-highlight-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sgp-scope.sgp-avis360--hero .sgp-hero-highlight-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sgp-avis360-muted);
    letter-spacing: 0.03em;
}
.sgp-scope.sgp-avis360--hero .sgp-avis360-title{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: .9;
}
.sgp-scope.sgp-avis360--hero .sgp-avis360-all{
  margin-top: 6px;
  display: inline-flex;
}


.sgp-scope.sgp-avis360--hero .sgp-hero-widget{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .sgp-scope.sgp-avis360--hero .sgp-hero-widget{
    grid-template-columns: 1fr;
  }
}


.sgp-scope.sgp-avis360--badge .sgp-avis-badge{
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.sgp-scope.sgp-avis360--badge .sgp-avis-badge-rating{
  display: flex;
  align-items: center;
  gap: 8px;
}

.sgp-scope.sgp-avis360--badge .sgp-avis-badge-right,
.sgp-scope.sgp-avis360--badge .sgp-avis-badge-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px){
  .sgp-scope.sgp-avis360--badge .sgp-avis-badge{
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.sgp-scope.sgp-avis360--badge .sgp-avis-badge{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 12px 18px !important; /* + d'air ? droite */
}

.sgp-scope.sgp-avis360--badge .sgp-avis-badge-count,
.sgp-scope.sgp-avis360--badge .sgp-badge-cta{
  align-self: center;
}

.sgp-scope.sgp-avis360--badge .sgp-badge-cta{
  margin-left: 10px;
}

/* Badge CTA - texte blanc (override primary) */
.sgp-avis360--badge .sgp-avis360-badge__cta,
.sgp-avis360--badge .sgp-avis360-badge__cta:hover,
.sgp-avis360--badge .sgp-avis360-badge__cta:focus {
    color: #fff !important;
    text-decoration: none !important;
}

/* Guide OAuth (shortcode FO) */
.sgp-scope.sgp-avis360-guide {
    max-width: 720px;
    margin: 0 auto;
}

.sgp-scope .sgp-avis360-guide__redirect-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sgp-scope .sgp-avis360-guide__redirect-uri {
    display: block;
    overflow-x: auto;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.85rem;
    word-break: break-all;
}

.sgp-scope .sgp-avis360-guide__content code,
.sgp-scope .sgp-avis360-guide__content pre {
    overflow-x: auto;
    padding: 0.35rem 0.5rem;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 0.9em;
}

.sgp-scope .sgp-avis360-guide__content pre {
    padding: 0.75rem 1rem;
    white-space: pre-wrap;
}

.sgp-scope .sgp-avis360-guide__content h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.sgp-scope .sgp-avis360-guide__content h3 {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.sgp-scope .sgp-avis360-guide__content ul,
.sgp-scope .sgp-avis360-guide__content ol {
    margin: 0.5rem 0 1rem 1.25rem;
}

/* Synthèse mensuelle – centrage horizontal (scoped, minimal) */
.sgp-scope .sgp-avis360-monthly-summary__inner {
    text-align: center;
    width: 100%;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.sgp-scope .sgp-avis360-monthly-summary__inner .sgp-text,
.sgp-scope .sgp-avis360-monthly-summary__inner .sgp-empty {
    text-align: center;
}

.sgp-scope .sgp-avis360-monthly-summary__inner h3 {
    text-align: center;
}

.sgp-scope .sgp-avis360-monthly-summary__inner .sgp-featured-review {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.sgp-scope .sgp-avis360-monthly-summary__inner .sgp-dl-btn,
.sgp-scope .sgp-avis360-monthly-summary__inner .sgp-avis360-read-more {
    display: inline-flex;
}

.sgp-scope .sgp-avis360-monthly-summary__inner .sgp-avis360-monthly-summary__actions,
.sgp-scope .sgp-avis360-monthly-summary__inner p:has(.sgp-dl-btn),
.sgp-scope .sgp-avis360-monthly-summary__inner p:has(.sgp-avis360-read-more) {
    text-align: center;
}

/* Sans card : padding minimal pour le shortcode dans bloc HTML */
.sgp-scope .sgp-avis360-monthly-summary .sgp-avis360-monthly-summary__inner:not(.sgp-month-summary) {
    padding: 0.5rem 0;
}

/* Synthèse mensuelle – toggle Lire la suite / Réduire */
.sgp-scope .sgp-avis360-summary-month__more {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 320ms ease, opacity 220ms ease;
}

.sgp-scope .sgp-avis360-summary-month__more.is-open {
    opacity: 1;
}

.sgp-scope .sgp-avis360-summary-month__toggle {
    margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .sgp-scope .sgp-avis360-summary-month__more {
        transition: none;
    }
}

/* FAQ fallback (SGP DL) – styles structurels uniquement, scoped */
.sgp-scope.sgp-faq .sgp-faq__a {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 320ms ease, opacity 220ms ease;
}
.sgp-scope.sgp-faq .sgp-faq__a.is-open {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .sgp-scope.sgp-faq .sgp-faq__a {
        transition: none;
    }
}
