/* Outils personnels et avis des fiches recette — Recettes Gourmandes */
.rg-recipe-tools,
.rg-recipe-reviews { box-sizing: border-box; }
.rg-recipe-tools *,
.rg-recipe-reviews * { box-sizing: border-box; }
.alignment .rg-recipe-tools p,
.alignment .rg-recipe-reviews p { padding: 0; }

.rg-recipe-tools {
  clear: both;
  margin: 24px 0 26px;
  padding: 22px;
  background: #fffaf5;
  border: 1px solid #f4dfca;
  border-radius: 10px;
}
.rg-tools-heading h2 {
  margin: 0 0 5px;
  color: #303030;
  font-size: 20px;
  font-weight: 700;
}
.rg-tools-heading p,
.rg-tool-card p,
.rg-recipe-reviews p { line-height: 1.55; }
.rg-tools-heading p { margin: 0 0 18px; color: #5e5e5e; }
.rg-tools-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 14px; }
.rg-tool-card {
  position: relative;
  min-width: 0;
  padding: 17px;
  background: #fff;
  border: 1px solid #eadfd3;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rg-tool-icon { color: #F57C00; font-size: 22px; line-height: 1; margin-bottom: 10px; }
.rg-tool-card h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.3; color: #303030; }
.rg-tool-card p { margin: 0 0 15px; color: #666; font-size: 13px; }
.rg-tool-card form { width: 100%; margin: auto 0 0; }
.rg-button,
.rg-recipe-tools .rg-button,
.rg-recipe-reviews .rg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid #F57C00;
  border-radius: 5px;
  background-color: #F57C00;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s;
}
.rg-recipe-tools .rg-button:hover,
.rg-recipe-reviews .rg-button:hover,
.rg-recipe-tools .rg-button:focus,
.rg-recipe-reviews .rg-button:focus { background-color: #db6e00; border-color: #db6e00; color: #fff; }
.rg-button:focus-visible,
.rg-menu-fields input:focus-visible,
.rg-menu-fields select:focus-visible,
.rg-review-form textarea:focus-visible { outline: 2px solid #a95100; outline-offset: 2px; }
.rg-tool-card .rg-button { width: 100%; }
.rg-menu-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 11px; }
.rg-menu-fields label { display: block; margin: 0; color: #444; font-size: 13px; font-weight: 700; }
.rg-menu-fields input,
.rg-menu-fields select {
  display: block;
  width: 100%;
  height: 42px;
  margin: 5px 0 0;
  padding: 8px 10px;
  border: 1px solid #cfc6bd;
  border-radius: 5px;
  background: #fff;
  color: #303030;
  font-size: 14px;
}
.rg-tools-login { margin: 0; padding: 13px 16px; background: #fff; border-radius: 6px; }

/* Variante compacte dans la colonne de droite, sous la recherche. */
.rg-recipe-tools--sidebar { margin: 0; padding: 16px; }
.rg-recipe-tools--sidebar .rg-tools-heading h2 { font-size: 18px; line-height: 1.25; }
.rg-recipe-tools--sidebar .rg-tools-heading p { font-size: 12px; margin-bottom: 14px; }
.rg-recipe-tools--sidebar .rg-tools-grid,
.rg-recipe-tools--sidebar .rg-menu-fields { grid-template-columns: minmax(0, 1fr); }
.rg-recipe-tools--sidebar .rg-tools-grid { gap: 10px; }
.rg-recipe-tools--sidebar .rg-tool-card { padding: 14px; }
.rg-recipe-tools--sidebar .rg-tool-card h3 { font-size: 15px; }
.rg-recipe-tools--sidebar .rg-tool-card p { font-size: 12px; margin-bottom: 12px; }
.rg-recipe-tools--sidebar .rg-tool-icon { font-size: 19px; margin-bottom: 7px; }
.rg-recipe-tools--sidebar .rg-menu-fields { gap: 9px; }
.rg-recipe-tools--sidebar .rg-button { padding: 9px 10px; font-size: 12px; }
.rg-recipe-tools--sidebar .rg-tools-login { font-size: 12px; padding: 10px; }

.rg-recipe-reviews { clear: both; margin: 34px 0 38px; }
.rg-recipe-reviews > h2 {
  margin: 0 0 17px;
  padding-bottom: 10px;
  border-bottom: 3px solid #F57C00;
  color: #303030;
  font-size: 23px;
}
.rg-rating-summary { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.rg-rating-score { font-size: 24px; font-weight: 700; color: #303030; }
.rg-rating-stars { color: #F57C00; letter-spacing: 2px; }
.rg-review-item { padding: 16px 0; border-bottom: 1px solid #eee; }
.rg-review-item time { color: #777; font-size: 12px; margin-left: 7px; }
.rg-review-item p { margin: 8px 0 0; }
.rg-review-form {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #eadfd3;
  border-radius: 10px;
  background: #fffaf5;
}
.rg-review-form h3 { margin: 0 0 5px; font-size: 20px; color: #303030; }
.rg-review-form > p { margin: 0 0 19px; color: #666; }
.rg-rating-fieldset { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.rg-rating-fieldset legend,
.rg-review-label { display: block; width: auto; margin: 0 0 8px; padding: 0; border: 0; color: #333; font-size: 14px; font-weight: 700; }
.rg-star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; width: max-content; max-width: 100%; }
.rg-star-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rg-star-picker label { margin: 0; padding: 0 4px 0 0; color: #F57C00; font-size: 38px; line-height: 1.15; cursor: pointer; transition: transform .15s; }
.rg-star-picker label span[aria-hidden="true"] { display: none; }
.rg-star-picker label::before { content: "☆"; color: #F57C00; }
.rg-star-picker label:hover::before,
.rg-star-picker label:hover ~ label::before,
.rg-star-picker input:checked ~ label::before { content: "★"; color: #F57C00; }
.rg-star-picker label:hover { transform: scale(1.08); }
.rg-star-picker input:focus-visible + label { outline: 2px solid #F57C00; outline-offset: 2px; border-radius: 3px; }
.rg-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.rg-review-form textarea {
  display: block;
  width: 100%;
  min-height: 125px;
  padding: 11px 13px;
  border: 1px solid #cfc6bd;
  border-radius: 5px;
  background: #fff;
  color: #303030;
  font-size: 14px;
  resize: vertical;
}
.rg-review-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; }
.rg-review-footer small { color: #666; line-height: 1.5; }
.rg-review-footer .rg-button { flex: 0 0 auto; }
@media (max-width: 700px) {
  .rg-tools-grid { grid-template-columns: 1fr; }
  .rg-recipe-tools { padding: 17px; }
}
@media (max-width: 460px) {
  .rg-menu-fields { grid-template-columns: 1fr; }
  .rg-review-form { padding: 17px; }
  .rg-review-footer { align-items: stretch; flex-direction: column; }
  .rg-review-footer .rg-button { width: 100%; }
}
