/* ==========================================
   Page Liste 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-page * {
    box-sizing: border-box;
}

.avis-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;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: -15s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 10%;
    left: 60%;
    animation-delay: -7s;
}

@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: 1400px;
    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;
}

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

.avis-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: 1200px;
    margin: 0 auto;
}

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

.avis-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-xl);
}

.avis-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 252, 0.8));
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-grey);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    transition: all 0.3s var(--ease-out-quart);
    overflow: hidden;
}

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

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

.avis-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--success-green);
}

.avis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 2;
}

.avis-user {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.avis-user-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--primary-charcoal);
    font-size: 1.2rem;
}

.avis-rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.avis-stars i {
    color: #FFD700;
    font-size: 1.1rem;
}

.avis-score {
    font-weight: 500;
    color: var(--secondary-grey);
    font-size: 0.9rem;
}

.avis-date {
    font-size: 0.9rem;
    color: var(--light-grey);
    font-family: var(--font-display);
    position: relative;
    z-index: 2;
}

.avis-content-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-grey);
    margin-bottom: var(--space-lg);
    font-style: italic;
    position: relative;
    z-index: 2;
}

.avis-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    position: relative;
    z-index: 2;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--success-green), #2F855A);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
    text-decoration: none;
}

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

.btn-action.btn-danger {
    background: linear-gradient(135deg, var(--accent-red), #C53030);
}

.btn-action.btn-danger:hover {
    background: linear-gradient(135deg, #C53030, var(--accent-red));
}

.like-count {
    font-weight: 600;
}

/* REPLY SECTION */
.reply-form {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(145deg, rgba(226, 232, 240, 0.3), rgba(237, 242, 247, 0.3));
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-grey);
    display: none;
}

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

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

.reply-list {
    margin-top: var(--space-lg);
    padding-left: var(--space-xl);
    border-left: 3px solid var(--success-green);
    position: relative;
}

.reply-item {
    background: linear-gradient(145deg, rgba(56, 161, 105, 0.05), rgba(104, 211, 145, 0.03));
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(56, 161, 105, 0.2);
}

.reply-author {
    font-weight: 600;
    color: var(--success-green);
    font-family: var(--font-display);
}

.reply-content {
    margin: var(--space-xs) 0;
    color: var(--secondary-grey);
}

.reply-date {
    font-size: 0.8rem;
    color: var(--light-grey);
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--secondary-grey);
}

.empty-state i {
    font-size: 4rem;
    color: var(--light-grey);
    margin-bottom: var(--space-lg);
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-charcoal);
    margin-bottom: var(--space-sm);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 var(--space-md);
    }
    
    .avis-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .avis-container {
        padding: var(--space-xl);
    }
    
    .avis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .avis-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .avis-container {
        padding: var(--space-lg);
    }
    
    .reply-list {
        padding-left: var(--space-lg);
    }
}
