/* ==========================================
   Page Soumettre Avis - Style moderne et premium
   ========================================== */

/* CSS CUSTOM PROPERTIES */
:root {
    /* Premium Color Palette */
    --primary-charcoal: #2D3748;
    --secondary-grey: #4A5568;
    --accent-red: #E53E3E;
    --success-green: #38A169;
    --warning-orange: #DD6B20;
    --light-grey: #A0AEC0;
    --very-light-grey: #F7FAFC;
    --glass-grey: #E2E8F0;
    --pure-white: #FFFFFF;
    
    /* Typography */
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Animation Easing */
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

/* GLOBAL RESET AND BASE */
.avis-submit-page * {
    box-sizing: border-box;
}

.avis-submit-page {
    min-height: 100vh;
    position: relative;
    font-family: var(--font-text);
    color: var(--primary-charcoal);
    overflow-x: hidden;
}

/* PREMIUM BACKGROUND ANIMATION */
.premium-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        rgba(247, 250, 252, 0.9) 0%, 
        rgba(237, 242, 247, 0.9) 25%,
        rgba(226, 232, 240, 0.9) 50%,
        rgba(237, 242, 247, 0.9) 75%,
        rgba(247, 250, 252, 0.9) 100%);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(229, 62, 62, 0.1),
        rgba(56, 161, 105, 0.1));
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.8;
    }
}

.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(229, 62, 62, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(56, 161, 105, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(74, 85, 104, 0.02) 0%, transparent 50%);
    animation: meshMove 25s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* HERO SECTION */
.avis-hero {
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 250, 252, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-grey);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: var(--space-lg);
}

.hero-icon i {
    font-size: 4rem;
    color: var(--accent-red);
    animation: automotive-shine 3s ease-in-out infinite;
}

@keyframes automotive-shine {
    0%, 100% {
        text-shadow: 0 0 20px rgba(229, 62, 62, 0.3);
        transform: rotateY(0deg) scale(1);
    }
    50% {
        text-shadow: 0 0 40px rgba(229, 62, 62, 0.6);
        transform: rotateY(180deg) scale(1.1);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-charcoal);
    margin-bottom: var(--space-md);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-charcoal), var(--secondary-grey));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-grey);
    margin-bottom: var(--space-2xl);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FORM SECTION */
.avis-form-content {
    max-width: 95%;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.avis-form-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.9));
    backdrop-filter: blur(15px);
    border: 2px solid var(--glass-grey);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-xl);
    transition: all 0.3s var(--ease-out-quart);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.avis-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 161, 105, 0.05), transparent);
    transition: left 0.8s ease-in-out;
}

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

.avis-form-container:hover {
    border-color: rgba(229, 62, 62, 0.3);
    box-shadow: var(--shadow-2xl);
}

.auth-notice {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(145deg, rgba(229, 62, 62, 0.05), rgba(229, 62, 62, 0.02));
    border: 2px solid rgba(229, 62, 62, 0.2);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
}

.auth-notice p {
    font-size: 1.1rem;
    color: var(--secondary-grey);
    margin-bottom: var(--space-lg);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--accent-red), #C53030);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #C53030, var(--accent-red));
}

.avis-form {
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: var(--space-xl);
}

.avis-form label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--primary-charcoal);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.avis-form textarea, 
.avis-form select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--glass-grey);
    border-radius: var(--radius-lg);
    font-family: var(--font-text);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: all 0.3s var(--ease-out-quart);
    resize: vertical;
    min-height: 120px;
}

.avis-form select {
    min-height: auto;
    height: auto;
}

.avis-form textarea:focus, 
.avis-form select:focus {
    outline: none;
    border-color: var(--success-green);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
    background: rgba(255, 255, 255, 1);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, var(--success-green), #2F855A);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-lg);
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #2F855A, var(--success-green));
}

.error-message {
    color: var(--accent-red);
    font-size: 0.9rem;
    margin-top: var(--space-xs);
    font-weight: 500;
}

/* RATING STARS STYLING */
.rating-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #FFD700;
    font-size: 1.2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 var(--space-md);
    }
    
    .avis-form-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .avis-form-container {
        padding: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .avis-form-container {
        padding: var(--space-lg);
    }
    
    .btn-submit {
        padding: var(--space-md) var(--space-xl);
        font-size: 1.1rem;
    }
}
