/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    color: #FFFFFF;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== ANIMATIONS DE FOND ADOUCIES ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(139, 92, 246, 0.12), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(139, 92, 246, 0.10), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(139, 92, 246, 0.08), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(139, 92, 246, 0.06), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(139, 92, 246, 0.12), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particlesFloat 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes particlesFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* ===== BOUTON DE RETOUR ===== */
.back-button-container {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(15px);
}

.back-button:hover {
    background: #8b5cf6;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* ===== MAIN CONTAINER ===== */
.contact-main {
    padding: 100px 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-container {
    width: 100%;
}

/* ===== HEADER ===== */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    /* Pas de halo pour le logo */
    filter: none !important;
    box-shadow: none !important;
}

.contact-header h1 {
    font-size: 60px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.contact-subtitle {
    font-size: 22px;
    color: #E5E5E5;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CONTENT LAYOUT ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== FORMULAIRE ===== */
.contact-form-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

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

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

.form-group label {
    font-weight: 600;
    color: #E5E5E5;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(20, 20, 20, 0.8);
}

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

/* ===== CHECKBOX PERSONNALISÉ ===== */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #E5E5E5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #8b5cf6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(20, 20, 20, 0.6);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #8b5cf6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* ===== LIEN CONDITIONS D'UTILISATION ===== */
.terms-link {
    color: #8b5cf6;
    text-decoration: underline;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.terms-link:hover {
    color: #a855f7;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    text-decoration: underline;
}

/* ===== BOUTON D'ENVOI ===== */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.submit-icon {
    transition: transform 0.3s ease;
}

.submit-button:hover .submit-icon {
    transform: translateX(3px);
}

/* ===== SECTION INFOS CONTACT ===== */
.contact-info-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.contact-info-card p {
    color: #E5E5E5;
    margin-bottom: 5px;
}

.info-subtitle {
    font-size: 12px;
    color: #8b5cf6 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FAQ RAPIDE ===== */
.quick-faq {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    padding: 30px;
}

.quick-faq h3 {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 8px;
}

.faq-item p {
    color: #E5E5E5;
    font-size: 14px;
}

/* ===== MODAL DE CONFIRMATION ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

.modal-content h3 {
    font-size: 24px;
    color: #8b5cf6;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.modal-content p {
    color: #E5E5E5;
    margin-bottom: 25px;
}

.modal-button {
    padding: 12px 30px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeTransition {
    0% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ===== CLASSES D'ANIMATION ===== */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.language-transition {
    animation: fadeTransition 0.5s ease-in-out;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.glow-effect {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    transition: box-shadow 0.3s ease;
    padding: 14px 32px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    background: #8b5cf6;
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-header h1 {
        font-size: 48px;
    }
}

@media screen and (max-width: 768px) {
    .back-button-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .contact-main {
        padding: 140px 15px 30px;
    }
    
    .contact-header h1 {
        font-size: 36px;
    }
    
    .contact-subtitle {
        font-size: 18px;
    }
    
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 24px;
    }
    
    .contact-content {
        gap: 30px;
        display: flex;
        flex-direction: column;
    }
    
    .contact-form-section {
        order: 1;
    }
    
    .contact-info-section {
        order: 2;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-button {
        padding: 15px 30px;
        font-size: 14px;
    }
    
    .contact-info-card {
        padding: 20px;
    }
    
    .quick-faq {
        padding: 20px;
    }
    
    .modal-content {
        padding: 30px;
        margin: 20px;
    }
}

@media screen and (max-width: 480px) {
    .back-button-container {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        padding: 15px;
        background: rgba(20, 20, 20, 0.9);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    }
    
    .contact-main {
        padding: 20px 10px;
    }
    
    .contact-header h1 {
        font-size: 28px;
    }
    
    .contact-subtitle {
        font-size: 16px;
    }
    
    .back-button,
    .glow-effect {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .float-animation {
        animation: none !important;
    }
}

/* ===== VALIDATION FORMULAIRE ===== */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ===== LOADING STATE ===== */
.submit-button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FOCUS VISIBLE ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* ===== OPTIONS SELECT SOMBRES ===== */
.form-group select option {
    background: #1a1a1a;
    color: #FFFFFF;
}

/* ===== SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* ===== FOOTER MENTIONS LÉGALES ===== */
.legal-footer {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.legal-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #E5E5E5;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid transparent;
}

.legal-links a:hover {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.legal-separator {
    color: rgba(139, 92, 246, 0.5);
    margin: 0 0.5rem;
}

.legal-copyright {
    font-size: 12px;
    color: #999;
    margin-top: 1rem;
    line-height: 1.4;
}

.legal-copyright strong {
    color: #8b5cf6;
}

/* ===== RESPONSIVE FOOTER ===== */
@media screen and (max-width: 768px) {
    .legal-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .legal-separator {
        display: none;
    }
    
    .legal-footer-content {
        padding: 0 1rem;
    }
    
    .legal-links a {
        padding: 0.8rem 1.5rem;
        font-size: 13px;
    }
}