/* Variables */
:root {
    --dark-blue: #050214;
    --form-bg: #120d35;
    --card-bg: rgba(25, 22, 57, 0.6);
    --card-border: rgba(151, 71, 255, 0.2);
    --purple: #7e55e2;
    --light-purple: #9747FF;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.8);
    --border-radius: 12px;
    --border-radius-large: 16px;
    --transition-speed: 0.3s;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--dark-blue);
    color: var(--text-white);
    line-height: 1.6;
    background-image: url('images/earth-space.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

/* Animation des étoiles */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.stars, .stars2, .stars3 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
}

.stars {
    animation: sparkle 30s linear infinite;
}

.stars2 {
    background-position: 50px 50px;
    animation: sparkle 50s linear infinite;
    opacity: 0.5;
}

.stars3 {
    background-position: -50px -100px;
    animation: sparkle 70s linear infinite;
    opacity: 0.3;
}

@keyframes sparkle {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-200px);
    }
}

/* En-tête */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Layout principal à deux colonnes */
.main-layout {
    display: flex;
    gap: 40px;
}

/* Colonne de gauche (Informations) */
.info-column {
    flex: 0 0 35%;
}

.info-column h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    gap: 20px;
    transition: all var(--transition-speed) ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(151, 71, 255, 0.2);
    border-color: rgba(151, 71, 255, 0.4);
}

.card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(151, 71, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Bouton WhatsApp - NOUVEAU */
.whatsapp-container {
    margin-top: 40px;
    text-align: center;
}

.whatsapp-container p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--whatsapp-green);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
    transition: all var(--transition-speed) ease;
    margin: 0 auto;
}

.whatsapp-button:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

/* Animation pulse pour le bouton WhatsApp */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Colonne de droite (Formulaire) */
.form-column {
    flex: 0 0 60%;
}

.mission-form {
    background-color: var(--form-bg);
    border-radius: var(--border-radius-large);
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.form-step {
    margin-bottom: 30px;
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.input-container {
    margin-bottom: 10px;
}

/* Styles pour les éléments du formulaire */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(20, 15, 50, 0.8);
    border: 1px solid rgba(151, 71, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239747FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(151, 71, 255, 0.2);
}

/* Budget Slider */
.budget-container {
    margin-top: 20px;
}

.budget-slider-container {
    position: relative;
    height: 6px;
    background-color: rgba(151, 71, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 20px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 2;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--purple);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(151, 71, 255, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--purple);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(151, 71, 255, 0.5);
}

.slider-progress {
    position: absolute;
    height: 100%;
    background: var(--purple);
    border-radius: 3px;
    z-index: 1;
    width: 50%; /* Valeur par défaut */
}

.budget-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.budget-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    flex: 1;
    transition: color var(--transition-speed) ease;
}

.budget-label.active {
    color: var(--purple);
    font-weight: 600;
}

/* File upload */
.file-upload-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(151, 71, 255, 0.15);
    border: 1px solid rgba(151, 71, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    color: var(--purple);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.file-upload-button:hover {
    background-color: rgba(151, 71, 255, 0.25);
    border-color: var(--purple);
}

.hidden-file-input {
    display: none;
}

.file-name {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 10px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Submit Button */
.submit-button {
    width: 100%;
    background-color: var(--purple);
    border: none;
    border-radius: var(--border-radius);
    padding: 18px;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: all var(--transition-speed) ease;
}

.submit-button:hover {
    background-color: var(--light-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(151, 71, 255, 0.4);
}

/* Animations */
[data-animation="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animation="fade-up"].animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column-reverse; /* Form first, then info */
    }
    
    .info-column, 
    .form-column {
        flex-basis: 100%;
    }
    
    .page-header h1 {
        font-size: 2.4rem;
    }
    
    .whatsapp-button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 60px 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    .mission-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .info-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .card-icon {
        margin-bottom: 10px;
    }
}
/* Styles
 pour les messages de validation et erreurs */
.form-message {
    margin: 15px 0;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.form-message.success {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border-color: #4CAF50;
}

.form-message.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border-color: #f44336;
}

.form-message ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.form-message li {
    margin: 5px 0;
}

/* Responsive pour les messages */
@media (max-width: 768px) {
    .form-message {
        margin: 10px 0;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}