/* ============================================================
   Jauge de Route — bloc profil + jauge essence SVG + modale notation
   Style noir / doré / blanc, premium.
   ============================================================ */

.jr-block {
  background: linear-gradient(180deg, rgba(8,8,8,0.92), rgba(5,5,5,0.95));
  border: 1px solid rgba(212, 185, 140, 0.30);
  border-radius: 18px;
  padding: 24px 26px;
  color: #FAF7F0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  position: relative;
}
.jr-block h3 {
  margin: 0 0 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 700;
  color: #F3D58A; letter-spacing: 0.02em;
}
.jr-block .jr-sub {
  font-size: 12.5px; color: rgba(250,247,240,0.55);
  margin: 0 0 18px;
}

/* === Jauge SVG === */
.jr-gauge {
  display: block;
  width: 100%; max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
}
.jr-gauge-arc-bg { fill: none; stroke: rgba(212,185,140,0.10); stroke-width: 14; stroke-linecap: round; }
.jr-gauge-arc-red    { stroke: #C24A4A; stroke-width: 14; stroke-linecap: butt; fill: none; }
.jr-gauge-arc-yellow { stroke: #E8B84B; stroke-width: 14; stroke-linecap: butt; fill: none; }
.jr-gauge-arc-green  { stroke: #6FAE7F; stroke-width: 14; stroke-linecap: butt; fill: none; }
.jr-gauge-needle {
  stroke: #F3D58A; stroke-width: 3; stroke-linecap: round;
  transition: transform 1.8s cubic-bezier(.34, 1.2, .58, 1);
  transform-origin: 100px 100px;
  filter: drop-shadow(0 0 6px rgba(243,213,138,0.85));
}
.jr-gauge-arc-red,
.jr-gauge-arc-yellow,
.jr-gauge-arc-green {
  animation: jr-arc-glow 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px currentColor);
}
@keyframes jr-arc-glow {
  0%   { opacity: 0.8; }
  100% { opacity: 1; }
}
.jr-gauge-hub {
  fill: #F3D58A;
  filter: drop-shadow(0 0 6px rgba(243,213,138,0.7));
}
.jr-gauge-tick { stroke: rgba(212,185,140,0.4); stroke-width: 1.5; }
.jr-gauge-label {
  fill: rgba(250,247,240,0.55);
  font-family: 'Inter', sans-serif;
  font-size: 8px; text-anchor: middle;
}

/* === Score & infos ===*/
.jr-stats {
  display: flex; align-items: center; justify-content: space-around;
  flex-wrap: wrap; gap: 18px;
  margin-top: 12px;
}
.jr-stat-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #F9DDA0, #C9A45C);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.jr-stat-big .of { font-size: 18px; opacity: 0.65; }
.jr-stat-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: rgba(250,247,240,0.65);
  text-align: left;
}
.jr-stat-meta strong { color: #F3D58A; font-weight: 600; font-size: 13px; }

.jr-zone-label {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px auto 0;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.jr-zone-label::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
}
.jr-zone-red    { background: rgba(194,74,74,0.10);  color: #F0A8A8; border: 1px solid rgba(194,74,74,0.40); }
.jr-zone-red::before { background: #C24A4A; box-shadow: 0 0 8px rgba(194,74,74,0.7); }
.jr-zone-yellow { background: rgba(232,184,75,0.08); color: #F3D58A; border: 1px solid rgba(232,184,75,0.40); }
.jr-zone-yellow::before { background: #E8B84B; box-shadow: 0 0 8px rgba(232,184,75,0.7); }
.jr-zone-green  { background: rgba(111,174,127,0.08); color: #B4E0BD; border: 1px solid rgba(111,174,127,0.40); }
.jr-zone-green::before { background: #6FAE7F; box-shadow: 0 0 8px rgba(111,174,127,0.7); }

/* === 4 cards critères (Ambiance / Esprit / Conversation / Aide) === */
.jr-criteria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.jr-criterion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  /* Cartes mieux délimitées : translucide clair + bordure + léger fond foncé,
     pour rester nettes même quand une photo de fond est posée derrière le bloc. */
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid rgba(212, 185, 140, 0.30);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  backdrop-filter: blur(2px);
}
.jr-criterion-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 185, 140, 0.45);
  background: radial-gradient(circle at 50% 60%, rgba(243,213,138,0.10) 0%, rgba(0,0,0,0.3) 70%);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(212, 185, 140, 0.20);
}
.jr-criterion-body {
  display: flex; flex-direction: column; min-width: 0;
}
.jr-criterion-body strong {
  font-size: 12px;
  color: #FAF7F0;
  font-weight: 600;
  line-height: 1.2;
}
.jr-criterion-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 600;
  color: #F3D58A;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .jr-criteria { grid-template-columns: 1fr; }
}

.jr-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
}
.jr-btn {
  flex: 1 1 auto;
  text-align: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(212, 185, 140, 0.30);
  background: rgba(212, 185, 140, 0.04);
  color: #F3D58A;
  cursor: pointer;
  transition: all .15s;
}
.jr-btn:hover { border-color: #F3D58A; background: rgba(212,185,140,0.10); }
.jr-btn-primary {
  background: linear-gradient(135deg, #8B6F3F, #C9A45C 60%, #F3D58A);
  border: none;
  color: #0A0A0A;
}
.jr-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(243,213,138,0.30); background: linear-gradient(135deg, #8B6F3F, #C9A45C 60%, #F3D58A); }

.jr-disabled {
  text-align: center;
  padding: 30px 18px;
  color: rgba(250, 247, 240, 0.55);
  font-style: italic;
}

/* ===== Liste des avis ===== */
.jr-reviews { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.jr-review {
  /* Fond sombre SOLIDE : les avis restent lisibles même par-dessus un fond de page clair (mode jour). */
  background: rgba(16,16,20,0.85);
  border: 1px solid rgba(212, 185, 140, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
}
.jr-review-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.jr-review-author { font-weight: 600; color: #F3D58A; }
.jr-review-time { font-size: 11.5px; color: rgba(250,247,240,0.45); margin-left: auto; }
.jr-review-score {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #8B6F3F, #C9A45C);
  color: #0A0A0A; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.jr-review-event {
  font-size: 10.5px; color: rgba(250,247,240,0.5);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.jr-review-criterion {
  margin-top: 6px; font-size: 12.5px;
}
.jr-review-criterion strong { color: #F3D58A; }
.jr-review-criterion .text { color: rgba(250,247,240,0.8); margin-left: 4px; }
.jr-reply {
  margin-top: 10px; padding: 10px 14px;
  background: rgba(212, 185, 140, 0.05);
  border-left: 2px solid #C9A45C;
  border-radius: 6px;
  font-size: 12.5px;
}
.jr-reply strong { color: #F3D58A; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== Modale notation (réutilise pattern Entraide) ===== */
.jr-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: transparent;
  display: none;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.jr-overlay.is-open { display: flex; opacity: 1; }
.jr-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(580px, 100vw);
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-left: 1px solid rgba(212, 185, 140, 0.20);
  box-shadow: -2px 0 0 rgba(201, 164, 92, 0.55), -16px 0 40px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateX(110%);
  transition: transform .28s cubic-bezier(.4,.0,.2,1);
  pointer-events: auto;
  color: #FAF7F0;
}
.jr-overlay.is-open .jr-modal { transform: translateX(0); }
.jr-modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(212, 185, 140, 0.20);
}
.jr-modal-title { flex: 1; font-family: 'Cormorant Garamond', serif; font-size: 24px; }
.jr-modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(212, 185, 140, 0.20);
  background: transparent; color: rgba(250,247,240,0.65); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.jr-modal-close:hover { color: #F3D58A; border-color: #C9A45C; }
.jr-modal-body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; }

.jr-intro {
  background: rgba(212, 185, 140, 0.06);
  border: 1px solid rgba(212, 185, 140, 0.30);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px; color: rgba(250,247,240,0.85); line-height: 1.55;
  margin-bottom: 18px;
}

.jr-field { margin-bottom: 18px; }
.jr-field h5 {
  font-size: 13px; font-weight: 600;
  color: #F3D58A; margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.jr-field .q { font-size: 12px; color: rgba(250,247,240,0.65); margin: 0 0 10px; font-style: italic; }

.jr-range {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.jr-range input[type=range] {
  flex: 1;
  accent-color: #C9A45C;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 20px;
}
.jr-range input[type=range]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #C24A4A 0%, #E8B84B 50%, #6FAE7F 100%);
  height: 6px; border-radius: 3px;
}
.jr-range input[type=range]::-moz-range-track {
  background: linear-gradient(90deg, #C24A4A 0%, #E8B84B 50%, #6FAE7F 100%);
  height: 6px; border-radius: 3px;
}
.jr-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #F3D58A;
  box-shadow: 0 0 8px rgba(243,213,138,0.7);
  border: none; cursor: pointer;
  margin-top: -6px;
}
.jr-range input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #F3D58A; border: none;
  box-shadow: 0 0 8px rgba(243,213,138,0.7);
}
.jr-range-val {
  min-width: 50px; text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700;
  color: #F3D58A;
}
.jr-range-val .of { font-size: 12px; opacity: 0.6; }

.jr-field textarea {
  width: 100%; min-height: 80px;
  background: rgba(212, 185, 140, 0.05);
  border: 1px solid rgba(212, 185, 140, 0.20);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit; font-size: 13.5px;
  color: #FAF7F0;
  resize: vertical;
}
.jr-field textarea:focus {
  outline: none;
  border-color: #C9A45C;
  background: rgba(212, 185, 140, 0.08);
}

.jr-submit {
  width: 100%;
  padding: 14px 22px;
  background: linear-gradient(135deg, #8B6F3F, #C9A45C 60%, #F3D58A);
  border: none; border-radius: 12px;
  color: #0A0A0A; font-weight: 700;
  font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; transition: transform .12s, box-shadow .12s;
  margin-top: 6px;
}
.jr-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,213,138,0.30); }
.jr-toast {
  margin-top: 10px; padding: 10px 14px;
  border-radius: 10px; font-size: 13px;
  display: none;
}
.jr-toast.show { display: block; }
.jr-toast.ok { background: rgba(111,174,127,0.10); border: 1px solid rgba(111,174,127,0.40); color: #B4E0BD; }
.jr-toast.err { background: rgba(194,74,74,0.10); border: 1px solid rgba(194,74,74,0.45); color: #F0A8A8; }

@media (max-width: 700px) {
  .jr-modal { width: 100vw; border-left: none; border-top: 2px solid #C9A45C; }
}
@media (prefers-reduced-motion: reduce) {
  .jr-modal, .jr-gauge-needle { transition: none !important; }
}

/* ============================================================
   RESPONSIVE — Tablette (≤ 900px)
============================================================ */
@media (max-width: 900px) {
  .jr-block {
    padding: 20px 18px;
    border-radius: 16px;
  }
  .jr-block h3 { font-size: 24px; }
  .jr-block .jr-sub { font-size: 12px; }

  .jr-gauge { max-width: 280px; }

  .jr-stats { gap: 14px; margin-top: 8px; }
  .jr-stat-big { font-size: 36px; }
  .jr-stat-big .of { font-size: 16px; }
  .jr-stat-meta { font-size: 11.5px; }

  .jr-zone-label {
    padding: 7px 14px;
    font-size: 12px;
  }

  .jr-criteria {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
  }
  .jr-criterion {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }
  .jr-criterion-icon { width: 30px; height: 30px; font-size: 14px; }
  .jr-criterion-body strong { font-size: 11px; }
  .jr-criterion-score { font-size: 16px; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 600px)
============================================================ */
@media (max-width: 600px) {
  .jr-block {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .jr-block h3 { font-size: 22px; line-height: 1.1; }
  .jr-block .jr-sub { font-size: 11.5px; margin-bottom: 8px; }

  /* Jauge plus compacte */
  .jr-gauge { max-width: 240px; }
  .jr-gauge-label { font-size: 7px; }

  /* Score + meta : empilés verticalement */
  .jr-stats {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }
  .jr-stat-big { font-size: 32px; }
  .jr-stat-meta {
    text-align: center;
    gap: 2px;
  }

  .jr-zone-label {
    font-size: 11.5px;
    padding: 7px 14px;
    margin-top: 12px;
  }
  .jr-zone-label::before { width: 8px; height: 8px; }

  /* 4 critères : 1 colonne, plus aérés */
  .jr-criteria {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }
  .jr-criterion {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
  }
  .jr-criterion-icon { width: 32px; height: 32px; font-size: 16px; }
  .jr-criterion-body { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; }
  .jr-criterion-body strong { font-size: 12.5px; }
  .jr-criterion-score { font-size: 16px; margin-top: 0; }

  /* Actions : pleine largeur sur mobile */
  .jr-actions {
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
  }
  .jr-btn {
    flex: none;
    width: 100%;
    padding: 11px 16px;
    font-size: 13.5px;
  }

  /* Liste des avis : padding réduit */
  .jr-reviews { margin-top: 16px; }
  .jr-review { padding: 12px 14px; }
  .jr-review-head { flex-wrap: wrap; }
  .jr-review-score { width: 30px; height: 30px; font-size: 12px; }
  .jr-review-criterion { font-size: 12px; }
}

/* ============================================================
   RESPONSIVE — Très petit écran (≤ 380px)
============================================================ */
@media (max-width: 380px) {
  .jr-gauge { max-width: 200px; }
  .jr-block h3 { font-size: 20px; }
  .jr-stat-big { font-size: 28px; }
  .jr-criterion-body strong { font-size: 11.5px; }
}
