/* ============================================
   Avis Verifies — Faithful reproduction
   Colors: Orange #ff5f3e, Dark #232323
   ============================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body { font-family: Arial, Helvetica, sans-serif; color: #333; background: #f5f5f5; line-height: 1.5; }
a { color: #333; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- TOP BAR ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 3px solid #ff5f3e;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.topbar__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}
.topbar__logo { display: flex; align-items: center; }
.topbar__logo img { height: 34px; width: auto; }
.topbar__nav { display: flex; gap: 20px; }
.topbar__nav a { font-size: 13px; color: #555; transition: color .15s; }
.topbar__nav a:hover { color: #ff5f3e; }

/* ---------- PAGE CONTAINER ---------- */
.page-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ---------- TITLE ---------- */
.attestation__title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #333;
}
.attestation__title b { font-weight: 700; }

/* ---------- RATING HEADER ---------- */
.rating {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}
.rating__logo img { height: 48px; width: auto; }
.rating__logo-text { font-size: 22px; font-weight: 700; color: #333; }
.rating__value { display: flex; align-items: center; gap: 12px; }
.rating__value-numeric { display: flex; align-items: baseline; gap: 2px; font-size: 14px; color: #666; }
.rating__value-fact { font-size: 28px; font-weight: 700; color: #333; }
.rating__details { font-size: 12px; color: #888; }
.rating__certification { margin-left: auto; font-size: 11px; color: #888; text-align: right; max-width: 340px; }
.rating__cert-label { margin-bottom: 2px; }
.rating__cert-sub { margin-bottom: 2px; }
.rating__cert-link { color: #ff5f3e; text-decoration: underline; }

/* ---------- STARS ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars__item {
    display: inline-block;
    width: 22px; height: 22px;
    background: #ddd;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.stars__item--accented { background: #ff5f3e; }
.stars__item--half { background: linear-gradient(to right, #ff5f3e 50%, #ddd 50%); }
.stars--small .stars__item { width: 16px; height: 16px; }

/* ---------- 2-COLUMN LAYOUT ---------- */
.attestation__wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.sidebar { width: 38.9%; flex-shrink: 0; }
.main-content { flex: 1; min-width: 0; }

/* ---------- SIDEBAR SECTION ---------- */
.sidebar__section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}
.sidebar__header {
    font-size: 14px;
    font-weight: 400;
    background: #f0f0f0;
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}
.sidebar__header b { font-weight: 700; }
.sidebar__body { padding: 14px; }
.sidebar__text { font-size: 13px; color: #555; line-height: 1.55; }

/* ---- Orange header variant (Informations + A propos) ---- */
.sidebar__header--orange {
    background: #ff5f3e;
    color: #fff;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
}
.sidebar__header--orange b { color: #fff; }

/* ---------- INFO TABLE (horizontal label/value) ---------- */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.info-table th {
    text-align: left;
    vertical-align: top;
    font-weight: 700;
    color: #333;
    padding: 6px 12px 6px 0;
    width: 95px;
    white-space: nowrap;
}
.info-table td {
    vertical-align: top;
    color: #555;
    padding: 6px 0;
    line-height: 1.55;
}
.info-table tr + tr { border-top: none; }
.info-table__desc--cut {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- LINKS ---------- */
.link--accented { color: #ff5f3e; text-decoration: none; font-weight: 700; font-size: 13px; }
.link--accented:hover { text-decoration: underline; color: #e0471f; }
.link--btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
    margin-top: 4px;
}

/* ---------- ACTIONS TITLE (plain heading outside boxes) ---------- */
.sidebar__actions-title {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin: 16px 0 12px;
    padding: 0;
}

/* ---------- DROPDOWN BOX (Deposer un avis / Signaler un abus) ---------- */
.dropdown-box {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}
.dropdown-box__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
}
.dropdown-box__label {
    font-size: 14px;
    font-weight: 400;
    color: #ff5f3e;
}
.dropdown-box__arrow {
    flex-shrink: 0;
    color: #ff5f3e;
    transition: transform .25s;
}
.dropdown-box--open .dropdown-box__arrow { transform: rotate(180deg); }
.dropdown-box__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.dropdown-box--open .dropdown-box__content {
    max-height: 900px;
}
.dropdown-box__text {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
    padding: 0 16px;
}
.dropdown-box__text:first-child { padding-top: 4px; }

/* ---------- DROPDOWN BOX FORMS ---------- */
.dropdown-box__form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
}
.dropdown-box__field-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
}
.dropdown-box__field-label:first-child { margin-top: 0; }
.dropdown-box__optional {
    font-weight: 400;
    color: #888;
}
.dropdown-box__input,
.dropdown-box__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: border-color .15s;
    margin-top: 4px;
}
.dropdown-box__input:focus,
.dropdown-box__textarea:focus {
    border-color: #ff5f3e;
    outline: none;
}
.dropdown-box__textarea { resize: vertical; }

/* ---- File upload zone ---- */
.dropdown-box__upload {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    margin-top: 6px;
    transition: border-color .15s;
}
.dropdown-box__upload:hover { border-color: #ff5f3e; }
.dropdown-box__upload-link {
    display: block;
    color: #ff5f3e;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
}
.dropdown-box__upload-hint {
    display: block;
    font-size: 12px;
    color: #ff5f3e;
    font-weight: 700;
    line-height: 1.4;
}
.dropdown-box__upload-status {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}

/* ---- Submit button (orange pill) ---- */
.dropdown-box__btn-wrap {
    text-align: center;
    margin-top: 16px;
    padding: 0 16px 16px;
}
.dropdown-box__form .dropdown-box__btn-wrap { padding: 0; }
.dropdown-box__submit {
    display: inline-block;
    padding: 8px 32px;
    background: #fff;
    color: #ff5f3e;
    border: 2px solid #ff5f3e;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background .15s, color .15s;
}
.dropdown-box__submit:hover {
    background: #ff5f3e;
    color: #fff;
}

/* ---------- EVALUATIONS (right) ---------- */
.eval__subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* ---------- SEARCH FORM ---------- */
.search-form { display: flex; gap: 0; }
.search-form__input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 3px 0 0 3px;
    font-size: 13px;
}
.search-form__input:focus { border-color: #ff5f3e; outline: none; }
.search-form__btn {
    padding: 8px 16px;
    background: #ff5f3e;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background .15s;
}
.search-form__btn:hover { background: #e0471f; }

/* ---------- FILTER BARS ---------- */
.filters__marks-list { display: flex; flex-direction: column; gap: 6px; }
.filters__mark-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}
.filters__mark-link:hover { color: #ff5f3e; }
.filters__mark-link--active { font-weight: 700; color: #ff5f3e; }
.filters__mark-label { width: 70px; flex-shrink: 0; }
.filters__mark-scale {
    flex: 1;
    height: 12px;
    background: #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}
.filters__mark-bar {
    display: block;
    height: 100%;
    background: #ff5f3e;
    border-radius: 6px;
    transition: width .3s;
}
.filters__mark-count { width: 45px; text-align: right; font-size: 12px; color: #888; flex-shrink: 0; }

/* ---------- SORT BAR ---------- */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 12px;
    gap: 8px;
}
.sort-bar__info { font-size: 12px; color: #888; }
.sort-bar__select {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    background: #fff;
}
.reviews__filter-info { font-size: 13px; color: #888; margin-bottom: 12px; }

/* ---------- REVIEWS LIST ---------- */
.reviews__list { display: flex; flex-direction: column; gap: 0; }
.review {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.review__header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review__rating { font-size: 13px; color: #888; }
.review__rating-fact { font-weight: 700; color: #333; }
.review__text { font-size: 13px; color: #333; line-height: 1.55; margin-bottom: 8px; }
.review__data { font-size: 11px; color: #999; }
.review__data-time { color: #888; }
.review__data-name { font-weight: 700; color: #666; }
.reviews__empty {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #888;
}

/* ---------- PAGINATION ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 12px 0;
}
.pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.pagination__btn:hover { border-color: #ff5f3e; color: #ff5f3e; }
.pagination__btn--disabled { opacity: .35; pointer-events: none; cursor: default; }
.pagination__current { font-size: 13px; color: #666; padding: 0 8px; }
.pagination__current b { color: #333; margin: 0 2px; }

/* ---------- FOOTER ---------- */
.page-footer {
    background: #232323;
    color: #aaa;
    font-size: 12px;
    padding: 16px 0;
    text-align: center;
    margin-top: 20px;
}
.page-footer__inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- BOTTOM BAR ---------- */
.bottom-bar {
    background: #f0f0f0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 24px;
}
.bottom-bar a { color: #ff5f3e; text-decoration: underline; }
.bottom-bar a:hover { color: #e0471f; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .attestation__wrapper { flex-direction: column-reverse; }
    .sidebar { width: 100%; }
    .main-content { width: 100%; }
    .rating { flex-direction: column; align-items: flex-start; gap: 12px; }
    .rating__certification { margin-left: 0; text-align: left; }
    .topbar__nav { gap: 12px; }
    .topbar__nav a { font-size: 12px; }
}
