* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #7c9cbf;
    --accent-color: #89b4d9;
    --bg-primary: #0f1419;
    --bg-secondary: #1a2332;
    --bg-card: rgba(26, 35, 50, 0.7);
    --bg-card-hover: rgba(26, 35, 50, 0.9);
    --text-primary: #e8f1f8;
    --text-secondary: #a8b9cc;
    --text-muted: #6b7c92;
    --border-color: rgba(138, 180, 217, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --star-empty: #3d4a5c;
    --star-filled: #f5c842;
    --star-hover: #ffd666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #243447 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 156, 191, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(137, 180, 217, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navigation */
nav {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

#auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#user-info:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}

#user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

#user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Boutons */
.btn-primary, .btn-secondary {
    padding: 11px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(74, 144, 226, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(30, 40, 50, 0.6);
    color: var(--text-primary);
    border: 2px solid rgba(74, 144, 226, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(40, 50, 60, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Main Content */
main {
    padding: 60px 20px;
}

section {
    margin-bottom: 80px;
}

section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 20px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3 {
    padding: 20px 24px 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.project-card p {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.6;
}

.tags {
    padding: 0 24px 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 24px 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(3px) translateY(-3px);
}

/* Review Form */
.review-form-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.review-form-card:hover {
    border-color: var(--primary-color);
}

.review-form-card h3 {
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: rgba(15, 20, 25, 0.5);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 20, 25, 0.7);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-group textarea::placeholder {
    color: var(--text-muted);
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 80px;
    padding: 20px 30px;
    border: 2px dashed rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.6) 0%, rgba(20, 27, 35, 0.6) 100%);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.file-upload-label:hover::before {
    opacity: 1;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(20, 27, 35, 0.8) 0%, rgba(25, 32, 40, 0.8) 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.2);
}

.file-upload-label svg {
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.file-upload-label:hover svg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(74, 144, 226, 0.5));
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-upload-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.file-upload-label:hover .file-upload-text {
    color: var(--primary-color);
}

.file-upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.file-input:focus + .file-upload-label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
}

#image-preview {
    margin-top: 20px;
}

#image-preview img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 12px;
    font-size: 2.8rem;
    margin: 15px 0;
}

.star {
    cursor: pointer;
    color: var(--star-empty);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.star.active {
    color: var(--star-filled);
    animation: starPulse 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(245, 200, 66, 0.5));
}

.star:hover {
    color: var(--star-hover);
    transform: scale(1.25) rotate(-12deg);
    filter: drop-shadow(0 4px 12px rgba(255, 214, 102, 0.6));
}

@keyframes starPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }
    40% {
        transform: scale(1.35) rotate(15deg);
    }
    70% {
        transform: scale(0.95) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Reviews List */
#reviews-list {
    display: grid;
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-delete-review {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(237, 66, 69, 0.9);
    opacity: 0;
    z-index: 10;
}

.review-card:hover .btn-delete-review {
    opacity: 1;
}

.btn-delete-review:hover {
    background: rgba(237, 66, 69, 1);
    transform: scale(1.1) rotate(-10deg);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.review-card:hover::before {
    opacity: 1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.review-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transition: transform 0.3s ease;
}

.review-card:hover .review-avatar {
    transform: scale(1.05);
}

.review-user-info h4 {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.87rem;
}

.review-stars {
    display: flex;
    gap: 5px;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.review-stars .star {
    cursor: default;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.review-message {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 1rem;
}

.review-image {
    margin-top: 18px;
}

.review-image img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.review-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
    animation: modalFadeIn 0.3s ease;
    padding: 20px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    animation: modalImageZoom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalImageZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal::before {
    content: '✕';
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    font-weight: 300;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-modal:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 15px;
    }

    section h2 {
        font-size: 2.2rem;
    }
    
    section h2::after {
        width: 60px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .star-rating {
        font-size: 2.2rem;
    }
    
    .review-form-card {
        padding: 28px;
    }
    
    .image-modal::before {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert messages */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    animation: alertSlideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes alertSlideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(59, 165, 93, 0.9), rgba(46, 125, 50, 0.9));
    color: white;
    border-color: rgba(59, 165, 93, 0.3);
    box-shadow: 0 4px 16px rgba(59, 165, 93, 0.3);
}

.alert-error {
    background: linear-gradient(135deg, rgba(237, 66, 69, 0.9), rgba(194, 24, 91, 0.9));
    color: white;
    border-color: rgba(237, 66, 69, 0.3);
    box-shadow: 0 4px 16px rgba(237, 66, 69, 0.3);
}

.alert-info {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(124, 156, 191, 0.9));
    color: white;
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
}

/* ===== ADMIN - GESTION DES PROJETS ===== */

#admin-controls {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    position: relative;
}

.project-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.project-card:hover .project-actions {
    opacity: 1;
}

.btn-edit, .btn-delete {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-edit {
    background: rgba(74, 144, 226, 0.9);
}

.btn-edit:hover {
    background: rgba(74, 144, 226, 1);
    transform: scale(1.1) rotate(10deg);
}

.btn-delete {
    background: rgba(237, 66, 69, 0.9);
}

.btn-delete:hover {
    background: rgba(237, 66, 69, 1);
    transform: scale(1.1) rotate(-10deg);
}

/* Modal de projet */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    animation: modalFadeIn 0.3s ease;
    padding: 80px 20px 20px 20px;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 27, 35, 0.98) 0%, rgba(15, 20, 25, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 20px;
    padding: 45px 50px 40px 50px;
    max-width: 850px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(74, 144, 226, 0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 100000;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(237, 66, 69, 0.1);
    border: 2px solid transparent;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    background: rgba(237, 66, 69, 0.2);
    border-color: rgba(237, 66, 69, 0.5);
    box-shadow: 0 4px 16px rgba(237, 66, 69, 0.3);
}

.modal-content h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content .form-group input[type="text"],
.modal-content .form-group input[type="url"],
.modal-content .form-group input[type="file"],
.modal-content .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content .form-group input[type="text"]:focus,
.modal-content .form-group input[type="url"]:focus,
.modal-content .form-group input[type="file"]:focus,
.modal-content .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 20, 25, 0.8);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15), 0 8px 24px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.modal-content .form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(124, 156, 191, 0.8);
    font-style: italic;
}

.modal-content .form-group input::placeholder,
.modal-content .form-group textarea::placeholder {
    color: var(--text-muted);
}

#project-image-preview {
    margin-top: 12px;
    text-align: center;
}

#project-image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(74, 144, 226, 0.3);
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

#project-image-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(74, 144, 226, 0.5);
}

/* Responsive pour le modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 35px 28px;
        margin: 15px;
        max-width: 95%;
        border-radius: 24px;
    }
    
    .modal-content h3 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-content h3 {
        font-size: 1.75rem;
    }
}

/* ===== EFFET DE NEIGE ===== */
.snow, .snow:before, .snow:after {
    position: fixed;
    top: -600px;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: 
        radial-gradient(4px 4px at 25px 35px, rgba(255,255,255,0.9) 50%, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 150px 200px, rgba(255,255,255,0.7) 50%, rgba(0,0,0,0)),
        radial-gradient(5px 5px at 380px 90px, rgba(255,255,255,0.8) 50%, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 520px 450px, rgba(255,255,255,0.6) 50%, rgba(0,0,0,0)),
        radial-gradient(6px 6px at 75px 380px, rgba(255,255,255,0.9) 50%, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 240px 120px, rgba(255,255,255,0.8) 50%, rgba(0,0,0,0)),
        radial-gradient(5px 5px at 480px 280px, rgba(255,255,255,0.7) 50%, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 120px 500px, rgba(255,255,255,0.9) 50%, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 350px 180px, rgba(255,255,255,0.6) 50%, rgba(0,0,0,0)),
        radial-gradient(6px 6px at 200px 320px, rgba(255,255,255,0.8) 50%, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 550px 150px, rgba(255,255,255,0.7) 50%, rgba(0,0,0,0)),
        radial-gradient(5px 5px at 90px 240px, rgba(255,255,255,0.9) 50%, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 420px 520px, rgba(255,255,255,0.6) 50%, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 280px 60px, rgba(255,255,255,0.8) 50%, rgba(0,0,0,0)),
        radial-gradient(6px 6px at 160px 440px, rgba(255,255,255,0.7) 50%, rgba(0,0,0,0)),
        radial-gradient(5px 5px at 500px 340px, rgba(255,255,255,0.9) 50%, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 320px 220px, rgba(255,255,255,0.8) 50%, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 180px 580px, rgba(255,255,255,0.6) 50%, rgba(0,0,0,0)),
        radial-gradient(5px 5px at 440px 100px, rgba(255,255,255,0.7) 50%, rgba(0,0,0,0)),
        radial-gradient(6px 6px at 60px 160px, rgba(255,255,255,0.9) 50%, rgba(0,0,0,0));
    background-size: 600px 600px;
    animation: snow 3s linear infinite;
    content: "";
    pointer-events: none;
    z-index: 1;
}

.snow:after {
    margin-left: -200px;
    opacity: 0.4;
    animation-duration: 6s;
    animation-direction: reverse;
    filter: blur(3px);
}

.snow:before {
    animation-duration: 9s;
    animation-direction: reverse;
    margin-left: -300px;
    opacity: 0.65;
    filter: blur(1.5px);
}

@keyframes snow {
    to {
        transform: translateY(600px);
    }
}

/* ===== MODAL DE DÉCONNEXION ===== */
.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100003;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logout-modal.show {
    opacity: 1;
}

.logout-modal-content {
    background: linear-gradient(135deg, rgba(25, 32, 42, 0.98) 0%, rgba(20, 27, 35, 0.98) 100%);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(74, 144, 226, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-modal.show .logout-modal-content {
    transform: scale(1) translateY(0);
}

.logout-icon {
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logout-modal-content h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.logout-modal-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

.logout-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel-logout,
.btn-confirm-logout {
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    flex: 1;
    max-width: 160px;
}

.btn-cancel-logout {
    background: rgba(50, 60, 70, 0.6);
    color: var(--text-primary);
    border-color: rgba(74, 144, 226, 0.3);
}

.btn-cancel-logout:hover {
    background: rgba(60, 70, 80, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.2);
}

.btn-confirm-logout {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4);
}

.btn-confirm-logout:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .logout-buttons {
        flex-direction: column;
    }
    
    .btn-cancel-logout,
    .btn-confirm-logout {
        max-width: 100%;
    }
}

/* Modal pour voir l'image du projet */
.project-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100004;
    animation: modalFadeIn 0.3s ease;
}

.project-image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: modalSlideUp 0.4s ease;
}

.project-image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.project-image-title {
    text-align: center;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(237, 66, 69, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.modal-close-btn:hover {
    background: rgba(237, 66, 69, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(237, 66, 69, 0.6);
}

/* Modal de confirmation de suppression */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100002;
    animation: modalFadeIn 0.3s ease;
}

.confirm-modal-content {
    background: linear-gradient(135deg, rgba(25, 30, 40, 0.98) 0%, rgba(20, 25, 35, 0.98) 100%);
    border: 2px solid rgba(237, 66, 69, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(237, 66, 69, 0.2);
    animation: modalSlideUp 0.3s ease;
}

.confirm-icon {
    margin-bottom: 25px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.confirm-modal-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.confirm-modal-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel {
    padding: 12px 28px;
    background: rgba(50, 60, 70, 0.6);
    color: var(--text-primary);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(60, 70, 80, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-confirm {
    padding: 12px 28px;
    background: linear-gradient(135deg, #ed4245 0%, #c23538 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(237, 66, 69, 0.4);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #c23538 0%, #ed4245 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(237, 66, 69, 0.6);
}
