:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --danger-color: #f87171;
    --warning-color: #fbbf24;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-bar form {
    display: flex;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-upload {
    background-color: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
}

.btn-upload:hover {
    background-color: #22c55e;
}

.user-welcome {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    color: var(--gray-color);
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
}

.sorting select {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    background: white;
    color: var(--dark-color);
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

/* APK Grid */
.apks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.apk-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.apk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.apk-card-header {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.apk-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-right: 1rem;
    object-fit: cover;
}

.apk-info {
    flex: 1;
}

.apk-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.apk-creator {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.apk-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.apk-meta span {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.apk-card-body {
    padding: 1.5rem;
}

.apk-description {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.apk-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stars {
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-text {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-left: 5px;
}

.downloads {
    color: var(--gray-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.apk-card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    display: flex;
    gap: 10px;
}

.apk-card-footer .btn-primary,
.apk-card-footer .btn-secondary {
    flex: 1;
    justify-content: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 3rem 0;
}

.page-link {
    padding: 10px 16px;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.stat-card p {
    color: var(--gray-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    box-shadow: var(--box-shadow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background-color: var(--success-color);
    color: white;
}

.flash-error {
    background-color: var(--danger-color);
    color: white;
}

.flash-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
}

/* APK Detail Styles */
.apk-detail-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    overflow: hidden;
}

.apk-detail-header {
    display: flex;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.detail-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-right: 2rem;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.apk-detail-info {
    flex: 1;
}

.apk-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.apk-developer {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.apk-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.meta-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.apk-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.detail-section {
    margin-bottom: 3rem;
}

.detail-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.changelog {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    line-height: 1.8;
}

/* Rating Form */
.rating-form-container {
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    color: #e2e8f0;
    font-size: 1.5rem;
    transition: var(--transition);
    margin-right: 5px;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #fbbf24;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    transition: var(--transition);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* Rating Overview */
.rating-overview {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.overview-score {
    text-align: center;
}

.score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    display: block;
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.bar-label {
    min-width: 80px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
}

.bar-count {
    min-width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Reviews */
.reviews-list {
    margin-top: 2rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer i {
    font-size: 1.5rem;
    color: var(--gray-color);
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-stars {
    color: #fbbf24;
}

.review-date {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.review-comment {
    line-height: 1.6;
    color: var(--dark-color);
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: var(--gray-color);
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Sidebar */
.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--dark-color);
}

.info-list span {
    color: var(--gray-color);
}

.security-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 0;
    color: var(--success-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    background: #f1f5f9;
    color: var(--dark-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn[data-platform="facebook"]:hover {
    background: #1877f2;
    color: white;
}

.share-btn[data-platform="twitter"]:hover {
    background: #1da1f2;
    color: white;
}

.share-btn[data-platform="whatsapp"]:hover {
    background: #25d366;
    color: white;
}

.share-btn[data-platform="link"]:hover {
    background: var(--primary-color);
    color: white;
}
/* === NOUVEAUX STYLES POUR FORMULAIRES === */

/* Styles généraux pour les formulaires */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    animation: fadeInUp 0.6s ease;
}

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

.auth-card h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-card h1 i {
    color: var(--primary-color);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.auth-links p {
    color: var(--gray-color);
    margin: 0;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.form-check input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check label {
    margin: 0;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 0.95rem;
}

/* Upload Container */
.upload-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.upload-container h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.upload-container h1 i {
    color: var(--primary-color);
}

.upload-form {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-section {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px dashed #e2e8f0;
}

.form-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* File Upload Styling */
.file-upload-group {
    margin-bottom: 2rem;
}

.file-upload-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-weight: 500;
}

.file-upload {
    position: relative;
    margin-bottom: 1rem;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: white;
    border: 3px dashed #cbd5e1;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
}

.file-upload-label i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-upload-label span {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.file-name {
    display: block;
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.icon-preview {
    text-align: center;
    margin-top: 1rem;
}

.icon-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Textarea styling */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Select styling */
select.form-control {
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234361ee' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 15px center;
    background-size: 16px;
    padding-right: 45px;
    cursor: pointer;
    appearance: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.form-actions .btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-with-icon .form-control {
    padding-left: 45px;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
}

.password-toggle:hover {
    color: var(--dark-color);
}

/* Upload Progress */
.upload-progress {
    display: none;
    margin-top: 2rem;
}

.progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Success/Error Messages */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #86efac;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

/* Requirements list */
.requirements {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.requirements ul {
    list-style: none;
    padding-left: 1rem;
}

.requirements li {
    margin-bottom: 0.3rem;
}

.requirements li.valid {
    color: var(--success-color);
}

.requirements li.invalid {
    color: var(--danger-color);
}

/* Upload Preview */
.upload-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    margin-top: 1rem;
    display: none;
}

.preview-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.preview-info {
    flex: 1;
}

.preview-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.preview-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .upload-form {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .upload-container h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .file-upload-label {
        padding: 2rem 1rem;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-primary:hover {
    animation: pulse 0.5s ease;
}

/* Gradient borders */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.7;
}

/* Upload steps */
.upload-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.upload-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    color: var(--gray-color);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-weight: 500;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.step.active .step-label {
    color: var(--dark-color);
}
/* === STYLES POUR FORMULAIRES MODERNES === */

/* Transition entre les étapes */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Améliorations responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .upload-form {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions button {
        width: 100%;
    }
    
    .upload-header h1 {
        font-size: 2rem;
    }
}

/* Animation pour les boutons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}
/* === STYLES POUR UPLOAD MULTI-ETAPES === */

.upload-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.upload-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    color: var(--gray-color);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-weight: 500;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.step.active .step-label {
    color: var(--dark-color);
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Upload Preview */
.preview-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    margin: 2rem 0;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.preview-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.preview-info p {
    color: var(--gray-color);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.preview-details h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.preview-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-color);
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
}

.confirmation-check {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.file-requirements {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.file-requirements i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.modal-header h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.modal-body {
    margin: 2rem 0;
    color: var(--gray-color);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Drag and drop amélioré */
.drag-over {
    border-color: var(--primary-color) !important;
    background: #f0f4ff !important;
    transform: scale(1.02);
}

/* Responsive pour les étapes */
@media (max-width: 768px) {
    .upload-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .upload-steps::before {
        display: none;
    }
    
    .step {
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions button {
        width: 100%;
    }
}
