/* Onglet « Avis » de la fiche séjour : styles (sortis de review-tab.jspf le 17/11/2026, la page
   product/view.jsp dépassant la taille maximale d'une méthode Java). */
    /* Mise en page = maquette FicheAvis (police du site) */
    .tsr-fiche { font-family: inherit; color: #212529; }
    .tsr-sec { display: flex; flex-direction: column; gap: 20px; }
    .tsr-summary { display: flex; gap: 32px; align-items: center; padding: 20px 24px; border-radius: 16px; background: #f6f8fc; }
    .tsr-big { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
    .tsr-big .n { display: flex; align-items: baseline; gap: 6px; }
    .tsr-big .n strong { font-size: 40px; line-height: 1; color: #1e2c63; }
    .tsr-big .n span { font-size: 14px; color: #6c757d; }
    .tsr-svgs { display: flex; gap: 2px; }
    .tsr-svgs.tight { gap: 1px; }
    .tsr-svgs svg { display: block; }
    .tsr-lnk { padding: 0; border: 0; background: transparent; color: #3b4a66; font-family: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; text-align: left; }
    .tsr-lnk:hover { color: #1747b8; }
    .tsr-sep { align-self: stretch; width: 1px; background: #e2e7f0; }
    .tsr-crits { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
    .tsr-crit { display: flex; flex-direction: column; gap: 3px; }
    .tsr-crit .l { font-size: 12px; color: #6c757d; }
    .tsr-crit.is-off .l { color: #a3adbd; }
    .tsr-crit .v { display: flex; align-items: center; gap: 6px; min-height: 20px; }
    .tsr-crit .v strong { font-size: 14px; color: #1e2c63; }
    .tsr-detail { margin-top: -8px; padding: 16px 24px; border-radius: 16px; border: 1px solid #e6ebf3; display: flex; gap: 32px; }
    .tsr-dist { flex: 1; display: flex; flex-direction: column; gap: 6px; }
    .tsr-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #3b4a66; }
    .tsr-bar .s { width: 64px; }
    .tsr-bar i { flex: 1; height: 8px; border-radius: 4px; background: #eef1f6; overflow: hidden; }
    .tsr-bar i b { display: block; height: 100%; background: #f5a524; border-radius: 4px; }
    .tsr-bar .p { width: 40px; text-align: right; color: #6c757d; }
    .tsr-prov { width: 260px; margin: 0; align-self: center; font-size: 12px; line-height: 1.6; color: #6c757d; }
    .tsr-how { margin-top: 6px; padding: 0; border: 0; background: transparent; color: #1f5ae0; font-family: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; }
    .tsr-how:hover { color: #1747b8; }
    .tsr-info { padding: 16px 24px; border-radius: 16px; background: #f6f8fc; font-size: 12px; line-height: 1.7; color: #3b4a66; }
    .tsr-info strong { display: block; margin-bottom: 4px; font-size: 13px; color: #14254a; }
    .tsr-info p { margin: 0; }
    .tsr-return { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #1a7f45; }
    .tsr-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .tsr-fbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 14px; border: 1.5px solid #dfe4ee; border-radius: 17px; background: #fff; color: #1e2c63; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
    .tsr-fbtn:hover { background: #f6f8fc; }
    .tsr-fbtn[aria-expanded="true"] { border-color: #1e2c63; }
    .tsr-fwrap { position: relative; }
    .tsr-filters { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 100%; padding: 6px; border: 1px solid #dfe4ee; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(30, 44, 99, .14); }
    .tsr-filters button { border-color: transparent !important; border-radius: 8px !important; background: transparent !important; white-space: nowrap; }
    .tsr-filters button:hover:not(:disabled) { background: #f6f8fc !important; }
    .tsr-listfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
    .tsr-filters button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1.5px solid #dfe4ee; background: #fff; color: #1e2c63; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
    .tsr-filters button:hover { background: #f6f8fc; }
    .tsr-filters button[aria-pressed="true"] { border-color: #1e2c63; background: #eef2fb; }
    .tsr-filters button:disabled { opacity: .4; cursor: default; }
    .tsr-sort { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: #6c757d; }
    .tsr-sort select { height: 34px; padding: 0 10px; border: 1.5px solid #dfe4ee; border-radius: 8px; background: #fff; font-family: inherit; font-size: 13px; color: #1e2c63; }
    .tsr-result { margin-top: -10px; font-size: 13px; color: #6c757d; }
    .tsr-list { display: flex; flex-direction: column; }
    .tsr-rev.is-target { background: #f1f5ff; box-shadow: inset 3px 0 0 #1f5ae0; }
    .tsr-rev.is-unseen { margin: 8px -16px; border: 1.5px dashed #c3ccdb; background: #f8fafc; }
    .tsr-rev.is-unseen > :not(.tsr-unseen):not(.tsr-replying) { opacity: .62; }
    .tsr-unseen { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; background: #eceff4; color: #4a5568; font-size: 12px; font-weight: 600; }
    .tsr-unseen::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 10.6a2 2 0 002.8 2.8M9.9 5.1A10.4 10.4 0 0112 5c7 0 10 7 10 7a17 17 0 01-3.2 4.3M6.6 6.6A16.6 16.6 0 002 12s3 7 10 7a9.7 9.7 0 005.4-1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 10.6a2 2 0 002.8 2.8M9.9 5.1A10.4 10.4 0 0112 5c7 0 10 7 10 7a17 17 0 01-3.2 4.3M6.6 6.6A16.6 16.6 0 002 12s3 7 10 7a9.7 9.7 0 005.4-1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
    .tsr-empty-text { margin: 0; max-width: 720px; font-size: 14px; line-height: 1.6; color: #6c757d; }
    .tsr-empty-text strong { display: block; font-size: 15px; color: #14254a; }
    .tsr-rev { position: relative; padding: 24px 16px; margin: 0 -16px; border-radius: 12px; display: flex; flex-direction: column; gap: 12px; max-width: 752px; }
    /* Trait entre deux avis : au bord du texte, pas dans la marge du survol (alignement 19/11/2026) */
    .tsr-rev::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1px solid #eef1f6; }
    .tsr-rev.is-unseen::before { display: none; }
    .tsr-rev .head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #6c757d; }
    .tsr-rev .txt { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 400; color: #1e2c63; white-space: pre-wrap; }
    .tsr-pms { display: flex; flex-direction: column; gap: 6px; }
    .tsr-pm { margin: 0; display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: #3b4a66; }
    .tsr-pm .ic { display: flex; flex-shrink: 0; }
    .tsr-reply { padding: 10px 16px; border-radius: 12px; background: #f6f8fc; }
    .tsr-reply p { margin: 0; font-size: 13px; line-height: 1.6; color: #3b4a66; white-space: pre-line; }
    .tsr-reply .tsr-toggle { margin-top: 4px; }
    .tsr-reply p span { display: block; margin-bottom: 2px; font-weight: 600; color: #1e2c63; }
    .tsr-toggle { align-self: flex-start; display: flex; align-items: center; gap: 4px; height: 24px; padding: 0; border: 0; background: transparent; color: #6c757d; font-family: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
    .tsr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .tsr-chip { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
    .tsr-chip.good { background: #e3f6ea; color: #1a7f45; }
    .tsr-chip.mid { background: #fff3e0; color: #8a5600; }
    .tsr-chip.bad { background: #fdecec; color: #b42318; }
    .tsr-chip.grey { background: #f1f2f5; color: #6b6c7e; }
    .tsr-orga-note { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 12px; background: #fff4e5; color: #6b4300; font-size: 13px; line-height: 1.55; }
    .tsr-orga-note strong { font-size: 14px; color: #4a2f00; }
    .tsr-hidden { padding: 2px 8px; border-radius: 10px; background: #fff3e0; color: #8a5600; font-size: 11px; font-weight: 700; }
    .tsr-reply-wait { margin: 6px 0 0; font-size: 12px; font-style: italic; color: #8a5600; }
    .tsr-fake { padding: 2px 8px; border: 1px dashed #d4a72c; border-radius: 10px; background: #fff4cc; color: #7a5b00; font-size: 11px; font-weight: 700; }
    .tsr-more { align-self: flex-start; height: 42px; padding: 0 22px; border: 1.5px solid #1e2c63; border-radius: 21px; background: #fff; color: #1e2c63; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
    .tsr-more:hover { background: #f6f8fc; }
    .tsr-answer { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: #0b5fff; color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .15s; }
    .tsr-rev:hover .tsr-answer, .tsr-answer:focus { opacity: 1; }
    @media (hover: none) { .tsr-answer { opacity: 1; } }
    .tsr-answer:hover { background: #0847c2; }
    .tsr-vc .tsr-rev:hover { background: #f7f9ff; }
    .tsr-replying { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid #0b5fff; border-radius: 12px; background: #fff; }
    .tsr-replying textarea { resize: vertical; padding: 10px 12px; border: 1.5px solid #e7e7ed; border-radius: 8px; font-family: inherit; font-size: 13px; }
    .tsr-replying textarea:focus { outline: none; border-color: #0b5fff; }
    .tsr-replying .acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .tsr-replying .pub { height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: #0b5fff; color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
    .tsr-replying .pub:disabled { background: #9dbcff; cursor: default; }
    .tsr-replying .cancel { height: 34px; padding: 0 10px; border: 0; background: transparent; color: #3b3c4e; font-family: inherit; font-size: 13px; cursor: pointer; }
    .tsr-replying .note { margin-left: auto; font-size: 12px; color: #6b6c7e; }
    .tsr-replying .err { margin: 0; font-size: 13px; color: #b42318; }
    .tsr-fiche button:focus { outline: none; }
    .tsr-fiche button:focus-visible, .tsr-fiche select:focus-visible { outline: none; box-shadow: 0 0 0 3px #c9d8fb; }
    @media (max-width: 767px) {
        .tsr-summary, .tsr-detail { flex-direction: column; align-items: stretch; gap: 16px; }
        .tsr-sep { width: auto; height: 1px; }
        .tsr-crits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .tsr-prov { width: auto; }
        .tsr-sort { margin-left: 0; }
    }
/* Résumé sans note (aperçu organisateur) : même gris que la fiche publique */
.tsr-summary.is-empty .tsr-big .n strong { color: #c3ccdb; }
.tsr-summary.is-empty .tsr-big .n span, .tsr-summary.is-empty .tsr-crit .l { color: #a3adbd; }

/* Tâche 14 : photos des familles sous l'avis */
.tsr-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.tsr-ph { width: 88px; height: 88px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #eef1f6; cursor: zoom-in; }
.tsr-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.tsr-ph:hover img { transform: scale(1.05); }
@media (max-width: 767px) { .tsr-ph { width: 72px; height: 72px; } }

/* Agrandissement d'une photo (tâche 14) */
.tph-veil { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(4, 17, 47, .92); }
.tph-veil[hidden] { display: none; }
/* T\00e2che 21 : vid\00e9os des avis (grande fen\00eatre + vignette avec lecture et dur\00e9e) */
.tph-fig video { display: block; width: calc(100vw - 140px); height: calc(100vh - 120px); background: #000; }
.tph-fig img[hidden], .tph-fig video[hidden], .tph-msg[hidden] { display: none; }
.tph-msg { width: min(640px, calc(100vw - 48px)); box-sizing: border-box; padding: 28px; border-radius: 8px; background: #0f1b3d; color: #dfe7ff; display: flex; flex-direction: column; gap: 8px; text-align: center; font-size: 14px; line-height: 1.5; }
.tph-msg b { color: #fff; font-size: 15px; }
.rv-vthumb { position: relative; }
.rv-vthumb video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rv-play { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: rgba(4, 17, 47, .62); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.rv-play svg { width: 15px; height: 15px; margin-left: 2px; }
.rv-dur { position: absolute; right: 3px; bottom: 3px; padding: 1px 5px; border-radius: 6px; background: rgba(4, 17, 47, .72); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.5; pointer-events: none; font-variant-numeric: tabular-nums; }
.rv-dur:empty { display: none; }
@media (max-width: 575px) { .tph-fig video { width: 100vw; height: calc(100vh - 140px); } }

.tph-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 140px); }
.tph-fig img { display: block; width: calc(100vw - 140px); height: calc(100vh - 120px); object-fit: contain; }
.tph-fig figcaption { color: #fff; font-size: 13px; opacity: .85; }
.tph-x, .tph-nav { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tph-x:hover, .tph-nav:hover { background: rgba(255, 255, 255, .26); }
.tph-x { top: 16px; right: 16px; }
.tph-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.tph-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.tph-nav[hidden] { display: none; }
@media (max-width: 575px) { .tph-fig { max-width: 100vw; } .tph-fig img { width: 100vw; height: calc(100vh - 140px); } .tph-nav { top: auto; bottom: 20px; transform: none; } }
