/* "Votre avis" block, shared by every template. Colours come from the template through the --ag-* variables
   set on the section (see avis-google.mjs); fonts and the button style come from the template itself. */
.ag { --ag-star: #E8A317; padding-block: clamp(48px, 6vw, 80px); }
.ag-card { max-width: 660px; margin-inline: auto; padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 48px); border: 1px solid var(--ag-line, #E2DED8); border-radius: var(--ag-radius, 16px); background: var(--ag-card, #fff); color: var(--ag-ink, inherit); text-align: center; }
.ag [data-ag-step][hidden] { display: none; }
.ag-card .ag-kicker { margin: 0 0 8px; color: var(--ag-accent, currentColor); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ag h2 { margin: 0; font-size: clamp(1.55rem, 3.4vw, 2.1rem); line-height: 1.15; color: var(--ag-ink, inherit); }
.ag-card p { margin: 12px auto 0; max-width: 34em; color: var(--ag-muted, inherit); font-size: 1rem; line-height: 1.55; }
.ag-picker { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin-top: 22px; }
.ag-rate { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: color-mix(in srgb, var(--ag-line, #D9D4CC) 65%, #8C8C8C); cursor: pointer; transition: color .12s, transform .12s; }
.ag-rate svg { width: 44px; height: 44px; fill: currentColor; }
.ag-rate:hover, .ag-rate:hover ~ .ag-rate, .ag-rate:focus-visible, .ag-rate:focus-visible ~ .ag-rate, .ag-rate.is-on { color: var(--ag-star); }
.ag-rate:hover { transform: scale(1.08); }
.ag-rate:focus-visible { outline: 3px solid var(--ag-accent, currentColor); outline-offset: 2px; }
.ag-scale { display: flex; justify-content: space-between; max-width: 296px; margin: 6px auto 0; color: var(--ag-muted, inherit); font-size: .82rem; }
.ag-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 24px; }
.ag-link { padding: 0; border: 0; background: none; color: var(--ag-muted, inherit); font: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ag-link:hover { color: var(--ag-ink, inherit); }
.ag-form { display: grid; gap: 14px; margin-top: 22px; text-align: left; }
.ag-note-choisie { justify-self: center; display: inline-block; padding: 4px 12px; border-radius: 99px; background: color-mix(in srgb, var(--ag-star) 18%, transparent); color: var(--ag-ink, inherit); font-size: .88rem; font-weight: 600; }
.ag-form label { display: grid; gap: 6px; color: var(--ag-ink, inherit); font-size: .95rem; font-weight: 600; }
.ag-form label small { font-weight: 400; color: var(--ag-muted, inherit); }
.ag-form input, .ag-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--ag-field, #B9B3AA); border-radius: 10px; background: var(--ag-input-bg, #fff); color: var(--ag-input-ink, #1d1d1d); font: inherit; font-size: 1rem; font-weight: 400; }
.ag-form textarea { min-height: 120px; resize: vertical; }
.ag-form input:focus, .ag-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--ag-accent, #333) 35%, transparent); outline-offset: 1px; border-color: var(--ag-accent, #333); }
.ag-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ag-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ag-card .ag-status { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FDECEA; color: #8C1D18; font-size: .95rem; }
.ag-card .ag-status[hidden] { display: none; }
.ag-form button[type="submit"] { justify-self: start; }
.ag-card .ag-small { margin: 0; color: var(--ag-muted, inherit); font-size: .85rem; }
.ag-small a, .ag-card p a { color: inherit; }
@media (max-width: 620px) {
  .ag-two { grid-template-columns: 1fr; }
  .ag-rate { width: 50px; height: 50px; }
  .ag-rate svg { width: 38px; height: 38px; }
  .ag-scale { max-width: 262px; }
  .ag-form button[type="submit"] { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .ag-rate { transition: none; } }
