/* ==========================================================================
   Page Avis clients : héro + widget d'étoiles + formulaire de feedback.
   Design system du thème : tokens main.css, police Inter/Hanken, rouge de marque.
   Mobile-first, responsive, cibles tactiles >= 44px, états focus accessibles.
   ========================================================================== */

/* Héro ----------------------------------------------------------------------- */
.rdc-avis-hero {
	position: relative; isolation: isolate;
	min-height: clamp(240px, 32vh, 380px); display: flex; align-items: flex-end;
	padding: calc(var(--rdc-nav-h) + clamp(32px, 5.5vw, 72px)) 0 clamp(22px, 3vw, 40px);
	background: linear-gradient(135deg, var(--rdc-red-800) 0%, var(--rdc-red-700) 55%, var(--rdc-red-600) 100%);
	color: #fff;
}

.rdc-avis-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.rdc-avis-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rdc-avis-hero-scrim {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20, 16, 15, 0.2) 0%, rgba(20, 16, 15, 0.3) 45%, rgba(20, 16, 15, 0.58) 100%);
}

.rdc-avis-hero .rdc-breadcrumb,
.rdc-avis-hero .rdc-breadcrumb a { color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.32); }

.rdc-avis-hero-inner { display: flex; flex-direction: column; gap: 10px; }

.rdc-avis-hero-eyebrow {
	display: inline-block;
	font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.38);
}

.rdc-avis-hero-title {
	margin: 6px 0 0; max-width: 24ch;
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(28px, 4.4vw, 52px); line-height: 1.07; letter-spacing: -0.01em;
	color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38); text-wrap: balance;
}

.rdc-avis-hero-lead {
	margin: 8px 0 0; max-width: 58ch;
	font-size: clamp(14px, 0.9rem + 0.2vw, 17px); line-height: 1.56;
	color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}

/* Mise en page section ------------------------------------------------------- */
.rdc-avis-wrap {
	padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 9vw, 100px);
}

/* Carte centrale */
.rdc-avis-card {
	max-width: 560px; margin: 0 auto;
	background: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
	padding: clamp(28px, 4vw, 48px);
}

/* Avis de résultat (erreur) -------------------------------------------------- */
.rdc-avis-notice {
	margin-bottom: 24px;
	padding: 14px 18px;
	border-radius: var(--radius-md);
	font-size: 15px; line-height: 1.5;
}
.rdc-avis-notice--err {
	background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
}

/* Carte de remerciement (soumission réussie) --------------------------------- */
.rdc-avis-merci {
	text-align: center;
	padding: clamp(16px, 2.5vw, 32px) 0;
}
.rdc-avis-merci-icon {
	display: block; font-size: 56px; line-height: 1; margin-bottom: 16px;
	color: #c8a000;
}
.rdc-avis-merci-title {
	margin: 0 0 10px;
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(20px, 2.2vw, 28px); color: var(--text-heading);
}
.rdc-avis-merci p {
	margin: 0; font-size: 15px; color: var(--text-muted); line-height: 1.55;
}

/* Widget étoiles ------------------------------------------------------------- */
.rdc-avis-widget { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.rdc-avis-widget-label {
	margin: 0; text-align: center;
	font-size: clamp(15px, 1rem + 0.15vw, 17px); font-weight: 600;
	color: var(--text-heading); line-height: 1.45; max-width: 40ch;
}

/* Conteneur des étoiles */
.rdc-avis-stars {
	display: flex; gap: 4px; justify-content: center;
}

/* Étoile : input radio masqué, label avec icône */
.rdc-avis-star-label {
	display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px;
	cursor: pointer;
	border-radius: var(--radius-sm);
	transition: transform 0.12s var(--ease-out, ease);
}
.rdc-avis-star-label:hover { transform: scale(1.12); }

.rdc-avis-star-input {
	/* Masqué mais focusable au clavier (visible via outline sur le label). */
	position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden;
}
.rdc-avis-star-input:focus-visible + .rdc-avis-star-icon {
	outline: 3px solid var(--color-accent, var(--rdc-red-700));
	outline-offset: 2px; border-radius: 2px;
}

.rdc-avis-star-icon {
	font-size: 40px; line-height: 1;
	color: #d1d5db; /* gris par défaut */
	transition: color 0.12s var(--ease-out, ease);
	user-select: none;
}
.rdc-avis-star-icon.is-hovered {
	color: #e5a800; /* or au survol */
}
.rdc-avis-star-icon.is-selected {
	color: var(--rdc-red-700, #9a2421); /* rouge de marque si sélectionné */
}

/* Repli prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.rdc-avis-star-label { transition: none; }
	.rdc-avis-star-icon  { transition: none; }
}

/* Zone de remerciement sans Google ------------------------------------------ */
.rdc-avis-thanks-no-google {
	text-align: center; width: 100%;
}
.rdc-avis-thanks-no-google p {
	margin: 0;
	font-size: 16px; font-weight: 600; color: var(--text-heading);
}

/* Formulaire de feedback ----------------------------------------------------- */
.rdc-avis-form { width: 100%; }

.rdc-avis-form-intro {
	margin: 0 0 20px;
	font-size: 14px; color: var(--text-muted); line-height: 1.5;
}

/* Champs : on réutilise les classes .rdc-iv-field du formulaire d'intervention */
.rdc-avis-form .rdc-iv-field {
	display: flex; flex-direction: column; gap: 5px;
	margin: 0 0 16px; padding: 0;
}
.rdc-avis-form .rdc-iv-field label {
	font-size: 14px; font-weight: 600; color: var(--text-heading);
}
.rdc-avis-form .rdc-iv-field input[type="text"],
.rdc-avis-form .rdc-iv-field input[type="email"],
.rdc-avis-form .rdc-iv-field textarea {
	padding: 10px 14px;
	border: 1.5px solid var(--border-default, #d1d5db);
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: 15px; color: var(--text-body);
	background: var(--surface-base, #fff);
	transition: border-color 0.15s, box-shadow 0.15s;
	width: 100%; box-sizing: border-box;
}
.rdc-avis-form .rdc-iv-field input:focus,
.rdc-avis-form .rdc-iv-field textarea:focus {
	outline: none;
	border-color: var(--rdc-red-700, #9a2421);
	box-shadow: 0 0 0 3px rgba(154, 36, 33, 0.14);
}
.rdc-avis-form .rdc-iv-field textarea { resize: vertical; min-height: 110px; }

/* Indicateur de champ obligatoire */
.rdc-iv-req { color: var(--rdc-red-700, #9a2421); margin-left: 1px; }

/* Champs optionnels (nom + e-mail) en grille */
.rdc-avis-optionals {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (max-width: 480px) {
	.rdc-avis-optionals { grid-template-columns: 1fr; }
}

/* Bouton de soumission */
.rdc-avis-submit {
	margin-top: 8px; width: 100%;
}

/* Honeypot */
.rdc-avis-hp {
	position: absolute; left: -9999px; top: auto;
	width: 1px; height: 1px; overflow: hidden;
}

/* ==========================================================================
   Section « Ils en parlent » : vidéo de témoignages + widget Elfsight des
   avis Google (Personnalisateur). Ne s'affiche que si l'un des deux est réglé.
   ========================================================================== */

.rdc-avis-parlent {
	padding: clamp(8px, 1vw, 16px) 0 clamp(40px, 6vw, 76px);
}

.rdc-avis-parlent-head {
	max-width: 640px;
	margin: 0 auto clamp(24px, 3.5vw, 36px);
	text-align: center;
}
.rdc-avis-parlent-title {
	margin: 0 0 8px;
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.01em;
	color: var(--text-heading); text-wrap: balance;
}
.rdc-avis-parlent-lead {
	margin: 0;
	font-size: clamp(14px, 0.9rem + 0.15vw, 16px); line-height: 1.55;
	color: var(--text-muted);
}

/* Vidéo : cadre centré, largeur raisonnable pour ne pas écraser la page */
.rdc-avis-parlent-video {
	max-width: 720px;
	margin: 0 auto;
}

/* Widget Elfsight : en dessous de la vidéo, séparé par un peu d'air */
.rdc-avis-parlent-widget {
	margin-top: clamp(28px, 4vw, 44px);
}
.rdc-avis-parlent-video + .rdc-avis-parlent-widget {
	margin-top: clamp(28px, 4vw, 44px);
}

/* ==========================================================================
   Listing des avis (cartes) : section .rdc-avis-list + grille.
   Classes en -item pour ne pas entrer en collision avec .rdc-avis-card
   (la carte du formulaire, max-width:560px centree).
   ========================================================================== */

.rdc-avis-list {
	padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 9vw, 100px);
	background: var(--surface-sunken);
}

/* Titre de section */
.rdc-avis-list-title {
	margin: 0 0 clamp(24px, 3.5vw, 40px);
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.01em;
	color: var(--text-heading); text-wrap: balance;
}

/* Grille de cartes : 3 colonnes sur desktop */
.rdc-avis-list-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2.2vw, 26px);
	align-items: stretch;
}

/* Carte individuelle */
.rdc-avis-card-item {
	display: flex; flex-direction: column; gap: 16px;
	background: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	padding: clamp(20px, 2.8vw, 32px);
	box-shadow: var(--shadow-card);
	transition: box-shadow var(--duration-base, 220ms) var(--ease-out, ease),
	            transform var(--duration-base, 220ms) var(--ease-out, ease);
}
.rdc-avis-card-item:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

/* Etoiles de notation */
.rdc-avis-card-stars {
	display: flex; gap: 2px;
	font-size: 18px; line-height: 1;
}
.rdc-avis-card-star         { color: #c8a000; } /* or : teinte etoiles du theme */
.rdc-avis-card-star.is-empty { color: var(--rdc-stone-300); }

/* Texte du message (blockquote sans marges par defaut) */
.rdc-avis-card-message {
	flex: 1;
	margin: 0; padding: 0;
	font-size: clamp(14px, 0.9rem + 0.1vw, 16px);
	line-height: 1.6; color: var(--text-body);
	quotes: none;
}

/* Pied de carte : nom + date */
.rdc-avis-card-meta {
	display: flex; flex-direction: column; gap: 2px;
	padding-top: 12px;
	border-top: 1px solid var(--border-subtle);
}
.rdc-avis-card-name {
	font-size: 14px; font-weight: 700; color: var(--text-heading);
}
.rdc-avis-card-date {
	font-size: 13px; color: var(--text-muted);
}

/* Responsive : 2 colonnes sous 980px */
@media (max-width: 980px) {
	.rdc-avis-list-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive : 1 colonne sous 620px */
@media (max-width: 620px) {
	.rdc-avis-list-grid { grid-template-columns: 1fr; }
}

/* Repli prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.rdc-avis-card-item { transition: none; }
}

/* Responsive mobile ---------------------------------------------------------- */
@media (max-width: 600px) {
	.rdc-avis-card {
		border-radius: var(--radius-lg);
		padding: clamp(20px, 5vw, 32px);
	}
	.rdc-avis-star-label { width: 44px; height: 44px; }
	.rdc-avis-star-icon  { font-size: 34px; }
}
