/* =============================================================
   AVIS CLIENTS — page de dépôt (avis.php) + bloc d'avis sous les
   hébergements (sejourner.php). Fichier dédié : aucun effet sur
   les autres pages. Variables de la charte du site.
   ============================================================= */
.avis-wrap{ max-width: 680px; margin: 0 auto; }
.avis-intro{ font-size: 15px; line-height: 1.85; color: var(--text-soft); text-align: center; }
.avis-stay{ margin-top: 12px; text-align: center; font-size: 14px; color: var(--text-soft); }
.avis-stay strong{ color: var(--text); }
.avis-form{ margin-top: 34px; }
.avis-wrap .sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.avis-fieldset{ border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.avis-fieldset legend{ padding: 0; margin-bottom: 10px; }
.avis-opt{ font-weight: 300; color: var(--text-mute); }

/* Étoiles interactives (sans JavaScript, zone de toucher 48 px) */
.avis-rating{ display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.avis-rating input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.avis-rating label{ font-size: 44px; line-height: 1; padding: 2px 4px; min-width: 48px; min-height: 48px; text-align: center; cursor: pointer; color: rgba(44,33,26,.18); transition: color .15s, transform .15s; }
.avis-rating input:checked ~ label,
.avis-rating label:hover,
.avis-rating label:hover ~ label{ color: var(--accent); }
.avis-rating input:focus-visible + label{ outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.avis-rating label:active{ transform: scale(1.12); }

.avis-counter{ margin-top: 6px; font-size: 12px; color: var(--text-mute); text-align: right; }
.avis-choice{ display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm, 6px); cursor: pointer; font-size: 14px; }
.avis-choice input{ width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.avis-consent{ display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.6; color: var(--text-soft); cursor: pointer; }
.avis-consent input{ width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.avis-note{ margin-top: 8px; font-size: 12.5px; color: var(--text-mute); }
.avis-note--moderation{ margin: 4px 0 18px; text-align: center; font-size: 13px; }
.avis-form .btn{ display: flex; margin: 0 auto; }
.form-row--hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.avis-message{ padding: 38px 30px; text-align: center; background: var(--card-bg, #fff); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.avis-message h2{ font-size: 24px; margin-bottom: 14px; }
.avis-message p{ font-size: 14.5px; line-height: 1.85; color: var(--text-soft); margin-bottom: 12px; }
.avis-message .btn{ margin-top: 12px; }
.avis-message--ok h2{ color: var(--accent); }

/* ---- Bloc d'avis sous chaque hébergement (Séjourner) ---- */
.stay-reviews{ margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.avis-empty{ font-size: 13px; font-style: italic; color: var(--text-mute); text-align: center; }
.avis-summary{ display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.avis-stars{ position: relative; display: inline-block; font-size: 17px; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.avis-stars-bg{ color: rgba(44,33,26,.16); }
.avis-stars-fg{ position: absolute; left: 0; top: 0; overflow: hidden; color: var(--accent); }
.avis-score{ font-family: var(--font-display); font-size: 17px; color: var(--text); }
.avis-count{ font-size: 12.5px; color: var(--text-mute); }
.avis-heading{ margin: 14px 0 10px; font-family: var(--font-script); font-size: 22px; line-height: 1.2; color: var(--accent); }
.avis-item{ margin: 0 0 12px; padding: 14px 16px; background: var(--background-alt, #FDF8F1); border-radius: var(--radius-sm, 6px); }
.avis-item-stars{ display: block; font-size: 13px; letter-spacing: 1px; color: var(--accent); }
.avis-item-stars i{ font-style: normal; color: rgba(44,33,26,.16); }
.avis-item-title{ margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.avis-item-text{ margin-top: 6px; font-size: 13.5px; font-weight: 300; line-height: 1.75; color: var(--text-soft); overflow-wrap: anywhere; }
.avis-item-name{ margin-top: 8px; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--text); }
.avis-more > summary{ list-style: none; cursor: pointer; display: inline-block; margin: 2px 0 12px; padding: 8px 2px; font-size: 13px; font-weight: 600; color: var(--accent); }
.avis-more > summary::-webkit-details-marker{ display: none; }
.avis-more .avis-more-close{ display: none; }
.avis-more[open] .avis-more-open{ display: none; }
.avis-more[open] .avis-more-close{ display: inline; }
.avis-more > summary:hover{ text-decoration: underline; }

@media (max-width: 600px){
    .avis-message{ padding: 28px 20px; }
    .avis-message h2{ font-size: 21px; }
    .avis-rating label{ font-size: 40px; min-width: 46px; }
    .avis-form .btn{ width: 100%; }
}
