/* ========================================
   PAGE CONTACT - DESIGN MODERNE
   ======================================== */

/* Conteneur principal */
.contact-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-primary);
    position: relative;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(165, 107, 255, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(255, 111, 177, 0.1), transparent 50%);
    pointer-events: none;
    opacity: 0.5;
}

/* En-tête de page */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

.contact-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text, #fff);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, var(--primary, #A56BFF), var(--accent, #FF6FB1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    font-size: 1.2rem;
    color: var(--text-muted, rgba(255,255,255,0.9));
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section formulaire + infos */
.contact-main-section {
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container {
    background: var(--bg-card, rgba(255,255,255,0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px var(--shadow, rgba(0,0,0,0.1));
    border: 1px solid var(--border, rgba(255,255,255,0.2));
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.contact-info-container {
    background: var(--bg-secondary, rgba(255,255,255,0.1));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border, rgba(255,255,255,0.2));
    color: var(--text, white);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* Formulaire */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text, #333);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border, #e1e5e9);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #333333 !important;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999 !important;
    opacity: 1;
}

.form-group select option {
    background: #ffffff !important;
    color: #333333 !important;
    padding: 0.5rem;
}

.form-group select option:checked,
.form-group select option:selected {
    background: #667eea !important;
    color: #ffffff !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary, #667eea);
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(102, 126, 234, 0.1));
    transform: translateY(-2px);
}

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

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

.btn-submit {
    background: linear-gradient(135deg, var(--primary, #667eea) 0%, var(--accent, #764ba2) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--primary-glow, rgba(102, 126, 234, 0.3));
}

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

/* Captcha */
.captcha-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border, rgba(255,255,255,0.1));
}

.captcha-container label {
    display: block;
    margin-bottom: 1rem;
    color: var(--primary, #667eea);
    font-weight: 600;
}

.simple-captcha {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simple-captcha label {
    color: var(--text, #333);
    font-size: 1rem;
}

.simple-captcha input {
    max-width: 120px;
    padding: 0.75rem;
    background: #ffffff !important;
    color: #333333 !important;
    border: 2px solid var(--border, #e1e5e9);
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
}

.g-recaptcha, .h-captcha {
    display: flex;
    justify-content: center;
}

/* Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message.success {
    background: linear-gradient(135deg, var(--success, #10b981), var(--success-dark, #059669));
    color: white;
    border: 1px solid var(--success-border, rgba(16, 185, 129, 0.3));
}

.message.success::before {
    content: '✅';
    font-size: 1.2rem;
}

.message.error {
    background: linear-gradient(135deg, var(--error, #ef4444), var(--error-dark, #dc2626));
    color: white;
    border: 1px solid var(--error-border, rgba(239, 68, 68, 0.3));
}

.message.error::before {
    content: '❌';
    font-size: 1.2rem;
}

/* Informations de contact */
.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text, white);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card, rgba(255,255,255,0.1));
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border, rgba(255,255,255,0.1));
}

.contact-method:hover {
    background: var(--bg-hover, rgba(255,255,255,0.2));
    transform: translateX(5px);
    border-color: var(--primary, rgba(165, 107, 255, 0.3));
}

.contact-method-icon {
    width: 40px;
    height: 40px;
    background: var(--primary, rgba(255,255,255,0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Liens sociaux */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--bg-card, rgba(255,255,255,0.1));
    color: var(--text, white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid var(--border, rgba(255,255,255,0.2));
}

.social-link-nav:hover {
    background: var(--bg-hover, rgba(255,255,255,0.2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow, rgba(0,0,0,0.2));
    border-color: var(--primary, rgba(165, 107, 255, 0.5));
}

/* Section équipe */
.team-section {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding: 3rem 0;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2rem;
    right: -2rem;
    bottom: 0;
    background: linear-gradient(135deg, rgba(165, 107, 255, 0.05), rgba(255, 111, 177, 0.05));
    border-radius: 30px;
    pointer-events: none;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.team-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary, #A56BFF), var(--accent, #FF6FB1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.team-header p {
    font-size: 1.2rem;
    color: var(--text-muted, rgba(255,255,255,0.9));
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-card {
    perspective: 1000px;
    height: 400px;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.team-card-front {
    background: linear-gradient(135deg, var(--bg-card, rgba(255,255,255,0.95)), var(--bg-secondary, rgba(255,255,255,0.9)));
    border: 2px solid var(--border, rgba(165, 107, 255, 0.2));
}

.team-card-back {
    background: linear-gradient(135deg, var(--primary, #A56BFF), var(--accent, #FF6FB1));
    color: white;
    transform: rotateY(180deg);
    text-align: center;
}

.team-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary, #A56BFF);
    box-shadow: 0 8px 20px rgba(165, 107, 255, 0.3);
}

.team-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.team-badge.director {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

.team-badge.production {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.team-badge.communication {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
}

.team-badge.tech {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.team-badge.moderation {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.team-card-front h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text, #333);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem;
    color: var(--text-muted, #666);
    margin-bottom: 1rem;
}

.team-icon {
    font-size: 3rem;
    margin-top: auto;
}

.team-card-back h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.team-card-back p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

.team-responsibilities {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.team-responsibilities li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

.team-responsibilities li:last-child {
    border-bottom: none;
}

.team-responsibilities li::before {
    content: '✓ ';
    margin-right: 0.5rem;
    font-weight: 700;
}

.team-twitch-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.85rem 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #6441a5;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    border: 3px solid white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.team-twitch-btn:hover {
    background: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-page {
        padding: 1rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-header p {
        font-size: 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .team-section {
        padding: 2rem 0;
    }
    
    .team-section::before {
        left: -1rem;
        right: -1rem;
    }
    
    .team-header h2 {
        font-size: 2rem;
    }
    
    .team-header p {
        font-size: 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-header h1 {
        font-size: 1.75rem;
    }
    
    .team-header h2 {
        font-size: 1.75rem;
    }
}
