/* ==========================================
   VARIABLES & RESET
   ========================================== */

:root {
    --purple: #60519b;
    --dark: #31323c;
    --light: #bfc0d1;
    --bg: #1a1a24;
    --surface: #242430;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--light);
    position: relative;
}

/* Particules flottantes (même style que landing) */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--purple);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 15%; animation-delay: 6s; animation-duration: 17s; }
.particle:nth-child(8) { left: 90%; animation-delay: 2.5s; animation-duration: 19s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Grain texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 10;
}

/* Mesh gradient animé */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(96, 81, 155, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(191, 192, 209, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(96, 81, 155, 0.2) 0%, transparent 50%);
    animation: meshMove 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes meshMove {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; opacity: 1; }
    50% { background-position: 20% 30%, 80% 70%, 60% 40%; opacity: 0.8; }
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
    height: 100vh;
    display: flex;
    position: relative;
    z-index: 1;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
    width: 80px;
    background: rgba(36, 36, 48, 0.7);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(96, 81, 155, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 40px;
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--purple) 30%, var(--purple) 70%, transparent 100%);
    opacity: 0.6;
    animation: slideGlow 3s ease-in-out infinite;
}

@keyframes slideGlow {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(20px); }
}

.back-link {
    font-size: 1.5rem;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0.7;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
    color: var(--purple);
}

.divider {
    width: 30px;
    height: 1px;
    background: rgba(96, 81, 155, 0.3);
}

.year {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
}

/* ==========================================
   MAIN
   ========================================== */

.main {
    flex: 1;
    padding: 40px 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ==========================================
   HEADER
   ========================================== */

.header {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out;
    flex-shrink: 0;
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(96, 81, 155, 0.15);
    border: 1px solid rgba(96, 81, 155, 0.4);
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--light);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 81, 155, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--purple);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--light) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--light);
    opacity: 0.7;
}

/* ==========================================
   CONTENT CONTACT
   ========================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    flex: 1;
    overflow: hidden;
    align-items: start;
}

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

/* ==========================================
   FORMULAIRE
   ========================================== */

.contact-form-wrapper {
    background: rgba(36, 36, 48, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 81, 155, 0.3);
    border-radius: 20px;
    padding: 30px;
    max-height: 100%;
    overflow: hidden;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.form-group input,
.form-group textarea {
    background: rgba(26, 26, 36, 0.6);
    border: 1px solid rgba(96, 81, 155, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--light);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(96, 81, 155, 0.1);
}

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

.submit-btn {
    background: var(--purple);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #7066a8;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(96, 81, 155, 0.4);
}

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

.btn-arrow {
    transition: transform 0.3s;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.form-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.form-status.show {
    opacity: 1;
    transform: translateY(0);
}

.form-status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4CAF50;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #f44336;
}

/* ==========================================
   RÉSEAUX SOCIAUX
   ========================================== */

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 100%;
    overflow: hidden;
}

.social-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 5px;
}

.social-card {
    background: rgba(36, 36, 48, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 81, 155, 0.3);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple);
    box-shadow: 0 15px 40px rgba(96, 81, 155, 0.3);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(96, 81, 155, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    transition: all 0.3s;
}

.social-card:hover .social-icon {
    background: var(--purple);
    color: var(--light);
    transform: scale(1.1);
}

.social-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.social-info p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main {
        padding: 40px 60px;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 30px 40px;
    }
    
    .sidebar {
        width: 60px;
        padding: 30px 0;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
}
