.avis-flash {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(.4, 0, .2, 1), max-height 0.5s cubic-bezier(.4, 0, .2, 1);
    max-height: 0;
    pointer-events: none;
}

.avis-flash.is-visible {
    opacity: 1;
    max-height: 200px;
    pointer-events: auto;
}

.avis-note-row {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    padding: 12px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    margin: 24px 0 32px 0;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.avis-score {
    margin-right: auto;
}

.avis-btn {
    margin-left: auto;
}



@media (max-width: 768px) {
    .avis-note-row {
        gap: 16px;
        padding: 12px 16px;
        justify-content: space-between;
    }

    .avis-btn {
        width: auto;
        text-align: center;
    }
}

/* Section Avis */
/* Section plus petite et centrée */
.avis-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    padding: 40px 0;
    background: none;
}

.avis-section-bg {
    background: linear-gradient(135deg, #c7e4f9 0%, #BBDEFB 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 32px;
    display: flex;
    justify-content: center;
}

.avis-container {
    width: 100%;
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

.avis-card-wrapper {
    flex: 0 0 370px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 300px;
}

.avis-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 13px;
    background: #009CDF22;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 156, 223, 0.08);
    display: block;
    z-index: 10;
}

.avis-progress {
    height: 100%;
    background: #009CDF;
    width: 0;
    animation: progressBar 6s linear infinite;
}

@keyframes progressBar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.avis-card {
    background: #fff;
    padding: 23px 32px 32px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.avis-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.avis-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #111;
}

.avis-author {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 12px 0;
}

.avis-stars {
    color: #FFC107;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.avis-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.avis-content {
    flex: 1;
    padding-left: 40px;
}

.avis-heading {
    font-family: "Unbounded", sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #111;

}

.avis-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 32px 0;
    max-width: 500px;
}

.avis-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    min-width: 0;
}

.avis-stars-large {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    letter-spacing: 4px;
    color: #E0E0E0;
    line-height: 1;
    min-width: calc(5ch + 16px);
}

.avis-stars-large::before,
.avis-stars-large::after {
    content: "★★★★★";
    position: absolute;
    left: 0;
    top: 0;
    letter-spacing: 4px;
}

.avis-stars-large::before {
    color: #E0E0E0;
}

.avis-stars-large::after {
    color: #FFC107;
    width: var(--star-fill, 0%);
    overflow: hidden;
    white-space: nowrap;
}

.avis-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: #111;
    white-space: nowrap;
}

.avis-btn {
    font-family: 'Unbounded', sans-serif;
    align-self: flex-end;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background-color: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.avis-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.avis-btn:hover::before {
    left: 100%;
}

.avis-btn:hover {
    transform: translateY(2px);
    box-shadow: #1f293733 4px 4px;
}

.avis-flash {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.avis-flash--success {
    background: rgba(56, 142, 60, 0.12);
    color: #256029;
}

.avis-flash--error {
    background: rgba(211, 47, 47, 0.12);
    color: #8c1c1c;
}

.avis-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.avis-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.avis-modal__dialog {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.25);
    width: min(560px, 90vw);
    padding: 32px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.avis-modal__close {
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    position: absolute;
    top: 12px;
    right: 16px;
    cursor: pointer;
    color: #333;
}

.avis-modal__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    color: #111;
}

.avis-modal__subtitle {
    margin: 0 0 24px 0;
    color: #555;
    font-size: 1rem;
}

.avis-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.avis-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avis-form__group label,
.avis-form__label {
    font-weight: 600;
    color: #333;
}

.avis-form__group input,
.avis-form__group textarea {
    border: 1px solid #d0d7de;
    border-radius: 10px;
    font-size: 1rem;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.avis-form__group input:focus,
.avis-form__group textarea:focus {
    outline: none;
    border-color: #009CDF;
    box-shadow: 0 0 0 3px rgba(0, 156, 223, 0.18);
}

.avis-rating-input {
    display: inline-flex;
    gap: 8px;
}

.rating-star {
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: #E0E0E0;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.rating-star.is-selected,
.rating-star:hover,
.rating-star:focus {
    color: #FFC107;
    transform: scale(1.1);
}

.avis-form__error {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #c62828;
}


.avis-submit-btn {
    font-family: 'Unbounded', sans-serif;
    align-self: flex-end;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background-color: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avis-submit-btn:hover {
    transform: translateY(2px);
    box-shadow: #1f293733 4px 4px;
}


.avis-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 999;
}

.avis-modal__backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

body.no-scroll {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0);
}

/* Garder la navbar sans décalage */
body.no-scroll .navbar {
    padding-right: var(--scrollbar-width, 0);
}

/* Cacher le menu burger quand le modal avis est ouvert */
body.no-scroll .burger,
body.no-scroll .mobile-menu {
    display: none !important;
}

@media (max-width: 600px) {
    .avis-modal__dialog {
        padding: 24px 20px;
        width: 90vw;
    }

    .rating-star {
        font-size: 1.8rem;
    }

    .avis-score {
        font-size: 1.4rem;
    }
}

/* Responsive pour tablettes */
@media (max-width: 1024px) {
    .avis-section {
        padding: 32px 20px;
    }

    .avis-section-bg {
        max-width: 95%;
        padding: 32px 24px;
    }

    .avis-container {
        flex-direction: column;
        gap: 0px;
    }

    .avis-content {
        padding-left: 0;
        text-align: center;
        order: -1;
    }

    .avis-card-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }

    .avis-description {
        max-width: 100%;
    }

    .avis-rating {
        justify-content: flex-end;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .avis-section {
        padding: 24px 16px;
    }

    .avis-section-bg {
        max-width: 95%;
        padding: 24px 16px;
    }

    .avis-container {
        gap: 32px;
    }

    .avis-card-wrapper {
        max-width: 100%;
    }

    .avis-card {
        padding: 24px 20px 20px 20px;
    }

    .avis-title {
        font-size: 1.8rem;
    }

    .avis-heading {
        font-size: 1.8rem;
    }

    .avis-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .avis-stars-large {
        font-size: 1.5rem;
    }

    .avis-score {
        font-size: 1.5rem;
    }

    .avis-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .avis-btn::before {
        display: none;
    }
}