.avis-page {
    --avis-bg-1: #eef4ff;
    --avis-bg-2: #e7f0fc;
    --avis-card: #ffffff;
    --avis-border: #d1e1f6;
    --avis-text: #0e2a4f;
    --avis-muted: #426287;
    --avis-primary: #1c4f92;
    --avis-primary-2: #2d73c4;
    --avis-danger-1: #bc2d38;
    --avis-danger-2: #d84e3f;
    --avis-shadow-soft: 0 14px 30px rgba(8, 20, 41, 0.1);
    --avis-shadow-strong: 0 26px 46px rgba(8, 20, 41, 0.16);
    background:
        radial-gradient(980px 360px at 0% 0%, rgba(30, 81, 155, 0.2), transparent 62%),
        radial-gradient(840px 300px at 100% 10%, rgba(193, 52, 56, 0.14), transparent 64%),
        linear-gradient(180deg, var(--avis-bg-1), var(--avis-bg-2));
    color: var(--avis-text);
}

.avis-shell {
    width: min(1160px, 94%);
    margin: 22px auto 44px;
}

.avis-head {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid #cbdcf3;
    box-shadow: var(--avis-shadow-strong);
    background:
        linear-gradient(115deg, rgba(11, 35, 67, 0.92), rgba(19, 58, 106, 0.82) 46%, rgba(13, 39, 74, 0.92)),
        url("../photos/logos/New logo amicale SP.webp") center 34% / cover no-repeat;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.avis-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(112, 171, 248, 0.18), transparent 34%),
        radial-gradient(circle at 90% 14%, rgba(216, 81, 75, 0.2), transparent 34%);
    pointer-events: none;
}

.avis-head__copy,
.avis-head__panel {
    position: relative;
    z-index: 1;
}

.avis-kicker {
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(231, 242, 255, 0.44);
    background: rgba(216, 233, 255, 0.2);
    color: #e8f2ff;
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.avis-head h1 {
    margin: 12px 0 8px;
    font-size: clamp(1.8rem, 3.2vw, 2.95rem);
    line-height: 1.1;
    color: #f4f9ff;
    letter-spacing: 0.01em;
}

.avis-lead {
    margin: 0;
    max-width: 720px;
    color: #d8e7fb;
    line-height: 1.68;
    font-size: 1.01rem;
}

.avis-head__chips {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.avis-head__chips span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(195, 223, 255, 0.58);
    background:
        linear-gradient(145deg, rgba(79, 144, 224, 0.38), rgba(49, 103, 179, 0.24));
    color: #f4f9ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 8px 16px rgba(10, 35, 68, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.avis-head__chips span::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #9ad2ff, #4f9dee);
    box-shadow: 0 0 0 3px rgba(152, 205, 255, 0.22);
}

.avis-head__chips span:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 236, 255, 0.76);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 12px 20px rgba(10, 35, 68, 0.28);
}

.avis-head__panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(146, 196, 255, 0.55);
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(87, 162, 255, 0.28), transparent 72%),
        linear-gradient(165deg, rgba(9, 28, 52, 0.92), rgba(15, 50, 94, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 16px 26px rgba(5, 18, 39, 0.34);
    padding: 22px 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.avis-head__panel::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(99, 178, 255, 0.26), rgba(99, 178, 255, 0));
    pointer-events: none;
}

.avis-panel-badge {
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(181, 218, 255, 0.54);
    background: rgba(94, 160, 238, 0.22);
    color: #eaf5ff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.avis-head__panel h2 {
    margin: 0 0 10px;
    color: #f6fbff;
    font-size: 1.28rem;
    line-height: 1.28;
    max-width: 28ch;
    text-wrap: balance;
}

.avis-head__panel p {
    margin: 0;
    color: #dbeaff;
    line-height: 1.68;
    font-size: 0.98rem;
    max-width: 38ch;
}

.avis-panel-points {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.avis-panel-points li {
    position: relative;
    padding-left: 16px;
    color: #e6f1ff;
    font-size: 0.85rem;
    font-weight: 700;
}

.avis-panel-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #80c1ff, #3d91f0);
    box-shadow: 0 0 0 3px rgba(110, 175, 245, 0.18);
}

.avis-form {
    margin-top: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid #bdd5f4;
    border-radius: 24px;
    background:
        radial-gradient(760px 260px at 102% -8%, rgba(212, 70, 62, 0.14), transparent 70%),
        radial-gradient(820px 260px at -10% 0%, rgba(46, 108, 196, 0.14), transparent 64%),
        linear-gradient(180deg, #ffffff, #f4f9ff);
    box-shadow: 0 18px 34px rgba(8, 24, 49, 0.12);
    padding: 20px;
    display: grid;
    gap: 16px;
}

.avis-form::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 0%, rgba(124, 184, 255, 0.2), transparent 32%),
        radial-gradient(circle at 96% 20%, rgba(240, 102, 97, 0.16), transparent 30%);
}

.avis-context {
    margin-top: 14px;
    border: 1px solid #cfe1f7;
    border-radius: 16px;
    background:
        radial-gradient(320px 120px at 0% 0%, rgba(71, 135, 220, 0.12), transparent 70%),
        linear-gradient(180deg, #ffffff, #f6faff);
    box-shadow: var(--avis-shadow-soft);
    padding: 16px;
    display: grid;
    gap: 10px;
}

.avis-context p {
    margin: 0;
    color: #2f527d;
    line-height: 1.68;
    font-size: 0.95rem;
}

.avis-status {
    margin: 14px 0 0;
    border-radius: 12px;
    padding: 11px 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.avis-status.is-success {
    color: #0f6a41;
    border-color: #a9dcc4;
    background: #e9f9f0;
}

.avis-status.is-info {
    color: #1f4c82;
    border-color: #bfd8f5;
    background: #edf5ff;
}

.avis-status.is-error {
    color: #8e1f2a;
    border-color: #efbac1;
    background: #fff1f3;
}

.avis-section {
    border: 1px solid #cedff5;
    border-radius: 16px;
    background: linear-gradient(160deg, #f8fbff, #edf5ff);
    padding: 13px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.avis-section h3 {
    margin: 0 0 4px;
    color: #103a6a;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.avis-section__lead {
    margin: 0;
    color: #4d6f97;
    font-size: 0.88rem;
}

.field,
.rating-group {
    border: 1px solid #c9ddf7;
    border-radius: 18px;
    background: linear-gradient(165deg, #ffffff, #f7fbff);
    padding: 16px;
    box-shadow: 0 10px 22px rgba(8, 26, 54, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.field:hover,
.rating-group:hover {
    transform: translateY(-2px);
    border-color: #aac8ec;
    box-shadow: 0 14px 26px rgba(10, 33, 67, 0.11);
}

.field--identity {
    background:
        radial-gradient(360px 120px at 110% 0%, rgba(46, 99, 179, 0.14), transparent 66%),
        #ffffff;
}

.rating-group {
    display: grid;
    gap: 11px;
}

.field label,
.rating-group legend {
    margin: 0;
    font-weight: 800;
    line-height: 1.52;
    color: #153865;
}

.field input,
.field textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 9px;
    border: 1px solid #bfd6f3;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 0.95rem;
    color: #112c50;
    background: #fcfeff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #528fd8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(63, 129, 219, 0.2);
}

.field textarea {
    resize: vertical;
    min-height: 150px;
}

.field-help {
    margin: 8px 0 0;
    color: var(--avis-muted);
    font-size: 0.87rem;
    line-height: 1.48;
}

.rating-scale {
    display: grid;
    gap: 11px;
}

.scale-min,
.scale-max {
    color: #44658f;
    font-size: 0.88rem;
    font-weight: 700;
}

.rating-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.rating-options label {
    position: relative;
    margin: 0;
    border-radius: 14px;
    border: 1px solid #bed7f6;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    min-height: 54px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rating-options label:hover {
    transform: translateY(-3px);
    border-color: #90b7ea;
    box-shadow: 0 12px 20px rgba(24, 68, 128, 0.16);
}

.rating-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-options span {
    font-weight: 900;
    color: #1a4a86;
    font-size: 1.03rem;
}

.rating-options input:checked + span {
    color: #ffffff;
}

.rating-options label:has(input:checked) {
    border-color: rgba(172, 38, 50, 0.58);
    background:
        radial-gradient(120px 50px at 100% 0%, rgba(255, 187, 176, 0.28), transparent 70%),
        linear-gradient(135deg, var(--avis-danger-1), var(--avis-danger-2));
    box-shadow: 0 14px 24px rgba(155, 35, 42, 0.3);
}

.form-actions {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.avis-submit {
    border: 1px solid rgba(139, 30, 38, 0.45);
    background:
        radial-gradient(220px 80px at 100% 0%, rgba(255, 196, 183, 0.26), transparent 70%),
        linear-gradient(135deg, #9b2432, #be3a31 46%, #db5b42);
    color: #fff8f7;
    border-radius: 14px;
    padding: 13px 24px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(138, 30, 37, 0.26);
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.avis-submit:hover {
    transform: translateY(-3px) scale(1.01);
    filter: brightness(1.06);
    box-shadow: 0 22px 34px rgba(138, 30, 37, 0.34);
}

.avis-submit:focus-visible,
.rating-options label:has(input:focus-visible),
.field input:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid rgba(187, 52, 57, 0.34);
    outline-offset: 2px;
}

.avis-page #footer {
    margin-top: 0;
}

@media (max-width: 930px) {
    .avis-head {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .avis-head__panel {
        padding: 16px 14px;
        text-align: left;
    }

    .avis-head__panel h2,
    .avis-head__panel p {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .avis-shell {
        margin-top: 12px;
    }

    .avis-form {
        padding: 13px;
        border-radius: 16px;
    }

    .field,
    .rating-group {
        padding: 13px;
        border-radius: 15px;
    }

    .rating-options {
        grid-template-columns: repeat(5, minmax(44px, 1fr));
        gap: 6px;
    }

    .form-actions {
        justify-content: stretch;
    }

    .avis-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rating-options label,
    .avis-submit {
        transition: none;
    }
}
