/* ajout_avis.css - Styles pour la page d'ajout d'avis */

/* Reset du main pour enlever tout style par défaut */
main {
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
}

/* Fond avec overlay */
.avis-page-wrapper {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carte principale type modal */
.avis-modal-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header de la carte */
.avis-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.avis-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.avis-modal-header i {
    font-size: 2rem;
}

.poi-name {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Corps de la carte */
.avis-modal-body {
    padding: 2rem;
}

/* Styles pour la sélection d'étoiles */
.star-rating-section {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.star-rating-section label.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 8px;
    font-size: 2.5rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

.star-rating label::before {
    content: '★';
}

/* Informations utilisateur */
.user-info-display {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea40;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-info-details {
    flex: 1;
}

.user-info-details p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: #555;
}

.user-info-details strong {
    color: #667eea;
    font-weight: 600;
}

/* Message anonyme */
.info-message {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #856404;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.info-message i {
    margin-right: 0.5rem;
}

/* Champs de formulaire */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group textarea:focus,
.form-group input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Upload de photos */
.photo-upload-section {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.photo-upload-section:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.photo-upload-section label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #667eea;
    font-weight: 600;
}

.photo-upload-section i {
    font-size: 1.5rem;
}

.photo-upload-section input[type="file"] {
    display: none;
}

/* Boutons d'action */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-secondary {
    flex: 1;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .avis-page-wrapper {
        padding: 1rem;
    }

    .avis-modal-card {
        border-radius: 15px;
    }

    .avis-modal-body {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }
}
