/* =====================================================================
   Avis clients 2026 (19/10/2026) — préfixe av26-
   compte/donner-mon-avis.php + résumé de note (accueil, témoignages, fiche produit)
   Fichier commun FT / CF : aucune couleur de site en dur, tout passe par
   --h26-orange (= COULEUR_PRINCIPALE, posée par haut-2026.php).
   ===================================================================== */
.av26-scope, main.cp26-page {
    --av-c: var(--h26-orange, #c8641e);
    --av-c-d: var(--h26-orange-d, #a9500f);
    --av-c-l: color-mix(in srgb, var(--av-c) 10%, #fff);
    --av-c-b: color-mix(in srgb, var(--av-c) 30%, #fff);
    --av-etoile: #f2a71b;
    --av-txt: #3d3d3d; --av-txt-l: #7a7268; --av-ligne: #e3dccf; --av-creme: #faf8f4; --av-vert: #2f7d32;
}

/* ---------- Page « Donner mon avis » ---------- */
.av26-carte { background: #fff; border: 1px solid var(--av-ligne); border-radius: 14px; padding: 22px 24px; margin: 0 0 18px; min-width: 0; }
.av26-carte h1 { margin-bottom: 10px; }
.av26-connexion { max-width: 560px; }
.av26-service { border-color: var(--av-c-b); background: linear-gradient(180deg, var(--av-c-l), #fff 120px); }
.av26-info { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 10px 14px; background: var(--av-creme); border-radius: 10px; font-size: 14px; color: #4a443c; text-align: justify; }
.av26-info i { color: var(--av-c); margin-top: 3px; }
.av26-alerte { display: flex; gap: 8px; margin: 0 0 14px; padding: 10px 12px; background: #fff7e6; border-radius: 8px; font-size: 14px; }
main.cp26-page h2.av26-titre { font-size: 20px; font-weight: 600; margin: 26px 0 12px; text-transform: none; text-align: left; }

.av26-produits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* 20/10/2026 (remarque de Sarah) : produits à gauche, avis sur la boutique à droite ; 1 colonne sur smartphone */
.av26-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.av26-grille-1 { grid-template-columns: minmax(0, 1fr); }
.av26-grille-1 .av26-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.av26-col { min-width: 0; }
.av26-grille > .av26-col:last-child:not(:first-child) { position: sticky; top: 150px; }
main.cp26-page .av26-col h2.av26-titre { margin-top: 4px; }
/* Une règle générale du site colore les icônes : on impose les couleurs voulues */
main.cp26-page .av26-ic i { color: #fff !important; }
main.cp26-page .av26-verifie i { color: inherit !important; }
main.cp26-page .av26-ok i { color: inherit !important; }
main.cp26-page .av26-err i { color: inherit !important; }
.av26-info span { flex: 1; min-width: 0; }
/* Encart « autres produits achetés » / « remonter » (20/10/2026, remarque de Sarah) */
.av26-suite { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border: 1px dashed var(--av-c-b); border-radius: 12px; background: var(--av-c-l); color: var(--av-txt) !important; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s; }
.av26-suite small { font-weight: 500; color: var(--av-txt-l); }
.av26-suite:hover { background: color-mix(in srgb, var(--av-c) 18%, #fff); }
main.cp26-page .av26-suite i { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--av-c); color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 15px; animation: av26-rebond 1.6s ease-in-out infinite; }
.av26-suite-haut { background: #fff; }
main.cp26-page .av26-suite-haut i { animation: none; }
@keyframes av26-rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { main.cp26-page .av26-suite i { animation: none; } }
/* Étoiles du formulaire : gris tant qu'aucune note n'est choisie (la règle générale des icônes les colorait d'office) */
main.cp26-page .av26-etoiles-choix label i { color: inherit !important; }
.av26-produits .av26-carte { margin: 0; scroll-margin-top: 140px; }
.av26-entete-carte { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; }
.av26-entete-carte h2, .av26-entete-carte h3 { margin: 0; padding: 0; font-size: 16px; font-weight: 600; line-height: 1.3; text-transform: none; text-align: left; }
main.cp26-page .av26-entete-carte h2 { font-size: 19px; }
.av26-entete-carte p { margin: 2px 0 0; color: var(--av-txt-l); font-size: 14px; }
.av26-entete-carte h3 a { color: var(--av-txt); text-decoration: none; }
.av26-entete-carte h3 a:hover { color: var(--av-c); }
.av26-ic { flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--av-c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.av26-photo { flex: 0 0 72px; height: 72px; border: 1px solid var(--av-ligne); border-radius: 10px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.av26-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.av26-verifie { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--av-vert); }

/* Formulaire */
.av26-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.av26-notes { border: 0; margin: 0; padding: 0; min-width: 0; }
.av26-notes legend { padding: 0; margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.av26-oblig { color: var(--av-c); }
/* Étoiles : boutons radio de 5 à 1, affichés de droite à gauche pour que le survol colore les étoiles précédentes */
.av26-etoiles-choix { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.av26-etoiles-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av26-etoiles-choix label { cursor: pointer; font-size: 30px; line-height: 1; color: #d9d2c5; padding: 2px; transition: color .1s, transform .1s; }
.av26-etoiles-choix label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.av26-etoiles-choix label:hover, .av26-etoiles-choix label:hover ~ label,
.av26-etoiles-choix input:checked ~ label { color: var(--av-etoile); }
.av26-etoiles-choix label:hover { transform: scale(1.12); }
.av26-etoiles-choix input:focus-visible + label { outline: 2px solid var(--av-c); outline-offset: 2px; border-radius: 4px; }
.av26-champ { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; }
.av26-champ small { font-weight: 400; color: var(--av-txt-l); }
main.cp26-page .av26-champ input, main.cp26-page .av26-champ textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--av-ligne); border-radius: 9px; font: inherit; font-weight: 400; font-size: 15px; background: #fff; color: var(--av-txt); }
main.cp26-page .av26-champ textarea { resize: vertical; min-height: 96px; }
main.cp26-page .av26-champ input:focus, main.cp26-page .av26-champ textarea:focus { outline: none; border-color: var(--av-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--av-c) 15%, transparent); }
.av26-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; align-self: flex-start; min-height: 46px; padding: 11px 22px; border: 0; border-radius: 10px; background: var(--av-c); color: #fff !important; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; }
.av26-btn:hover { background: var(--av-c-d); }
.av26-btn-2 { background: #fff; color: var(--av-txt) !important; border: 1px solid var(--av-ligne); }
.av26-btn-2:hover { background: var(--av-creme); }

/* Messages et avis déjà donné */
.av26-ok, .av26-err { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 9px; font-size: 14px; }
.av26-ok { background: #eaf6ea; color: var(--av-vert); }
.av26-err { background: #fdecea; color: #b42318; }
.av26-donne { padding: 12px 14px; background: var(--av-creme); border-radius: 10px; font-size: 14px; }
.av26-donne b { display: block; margin: 6px 0 2px; }
.av26-donne p { margin: 4px 0 0; text-align: justify; }
.av26-reponse { margin: 10px 0 0 10px; padding: 8px 11px; background: #fff; border-left: 3px solid var(--av-c); border-radius: 6px; text-align: justify; }
.av26-reponse b { display: block; margin: 0 0 2px !important; color: var(--av-c-d); }
main.cp26-page .av26-reponse i { color: inherit !important; }
.av26-etoiles { color: var(--av-etoile); letter-spacing: 1px; white-space: nowrap; }
.av26-statut { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: #fff3d6; color: #8a5a00; font-size: 12.5px; font-weight: 600; }
.av26-statut-ok { background: #eaf6ea; color: var(--av-vert); }
.av26-bas { margin: 18px 0 0; }
.av26-bas a { color: var(--av-c); font-weight: 600; text-decoration: none; }

/* ---------- Résumé de note (accueil, page témoignages) ---------- */
.av26-resume { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 4px auto 18px; font-family: 'Poppins', 'Urbanist', Arial, sans-serif; font-size: 15px; color: var(--av-txt); }
.av26-resume b { font-size: 26px; font-weight: 700; color: var(--av-txt); }
.av26-resume b small { font-size: 15px; font-weight: 500; color: var(--av-txt-l); }
.av26-resume .av26-etoiles { font-size: 20px; }
.av26-resume span.av26-nb { color: var(--av-txt-l); }
.av26-resume a { color: var(--av-c); font-weight: 600; text-decoration: none; }
.av26-resume a:hover { text-decoration: underline; }

/* Bouton « Donner mon avis » dans Mes commandes */
.cmd-avis-btn { background: var(--h26-orange, #c8641e) !important; color: #fff !important; }
.cmd-avis-lien { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--h26-orange, #c8641e); text-decoration: none; }
.cmd-avis-lien:hover { text-decoration: underline; }
.cmd-avis-lien .av26-etoiles { font-size: 12px; }

@media (max-width: 860px) {
    .av26-grille, .av26-grille-1 .av26-produits { grid-template-columns: minmax(0, 1fr); }
    .av26-grille > .av26-col:last-child:not(:first-child) { position: static; }
}
@media (max-width: 760px) {
    .av26-produits { grid-template-columns: minmax(0, 1fr); }
    .av26-carte { padding: 18px 16px; }
    .av26-btn { align-self: stretch; }
    .av26-etoiles-choix label { font-size: 34px; }
}
#av26-produits { scroll-margin-top: 150px; }
.av26-autres { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
