/* Variables CSS adaptées de waifly.css */
:root {
    --primary-color: #38b1ed;
    --primary-dark: #2d95cc;
    --dark-bg: #15182d;
    --secondary-bg: #1c1f36;
    --tertiary-bg: #232842;
    --text-light: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #9ca3af;
    --text-dark: #333333;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.opinion-container {
    max-width: 500px;
    margin: 20px auto;
    background: var(--secondary-bg);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    padding: 32px 28px 24px 28px;
    border: 1px solid var(--border-color);
}

.opinion-container h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-weight: 500;
}

input[type="text"], textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--tertiary-bg);
    color: var(--text-light);
    transition: border 0.2s;
}

input[type="text"]:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

button {
    width: 100%;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 0;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: var(--primary-dark);
}

.footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.95em;
}

/* Style pour le système d'étoiles */
.rating-container {
    margin-bottom: 20px;
}

.rating-title {
    display: block;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.stars input {
    display: none;
}

.stars label {
    cursor: pointer;
    width: 40px;
    font-size: 30px;
    color: #555;
    margin: 0;
    transition: color 0.2s;
}

.stars label:before {
    content: "★";
}

.stars input:checked ~ label,
.stars:not(:checked) > label:hover,
.stars:not(:checked) > label:hover ~ label {
    color: var(--warning-color);
}

.stars > input:checked + label:hover,
.stars > input:checked ~ label:hover,
.stars > label:hover ~ input:checked ~ label,
.stars > input:checked ~ label:hover ~ label {
    color: #ffd166;
}

.rating-value {
    margin-top: 5px;
    font-size: 16px;
    color: var(--text-secondary);
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    vertical-align: top;
}
.checkbox-container label {
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    vertical-align: bottom;
}
.checkbox-container input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.checkbox-container input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-dark);
}
.checkbox-container input[type="checkbox"]:checked + label {
    color: var(--text-light);
}
.checkbox-container input[type="checkbox"]:not(:checked) + label {
    color: var(--text-secondary);
}
.checkbox-container input[type="checkbox"]:not(:checked):focus + label {
    color: var(--text-secondary);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.checkbox-container input[type="checkbox"]:not(:checked):focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(56, 177, 237, 0.5);
}
.checkbox-container input[type="checkbox"]:checked:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(45, 149, 204, 0.5);
}