/* Variables */
:root {
    --dark-blue: #050214;
    --deep-blue: #0c0b2a;
    --purple: #8855e2;
    --light-purple: #9747FF;
    --orange: #ff7e55;
    --yellow: #ffd166;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.8);
    --border-radius: 12px;
    --border-radius-large: 20px;
    --transition-speed: 0.3s;
}

/* 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;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 4rem;
}

/* Section d'introduction */
.intro-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.moon-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/astronaute-img.png);
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.intro-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Section principale - Formulaire */
.main-section {
    max-width: 1200px;
    margin: -100px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.main-card {
    background: linear-gradient(135deg, #0d0d35 0%, #1a0d35 50%, #1a0f42 100%);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    padding: 3rem;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

/* Section des témoignages - SÉPARÉE */
.testimonials-container {
    max-width: 1200px;
    margin: 60px auto 0; /* Espace entre le formulaire et les témoignages */
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.testimonials-card {
    /* Gradient légèrement différent pour distinguer des formulaires */
    background: linear-gradient(135deg, #0c0c30 0%, #180c30 50%, #17103e 100%);
}

/* Titres de section */
.section-title {
    color: var(--purple);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Section formulaire */
.form-section {
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

/* Style des champs du formulaire */
input[type="text"],
textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(12, 11, 42, 0.6);
    border: 1px solid rgba(151, 71, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 2px rgba(151, 71, 255, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Case à cocher */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--purple);
}

.checkbox-group label {
    font-size: 0.9rem;
    margin-bottom: 0;
    font-weight: 400;
    color: var(--text-light);
}

/* Système de notation par étoiles */
.rating {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.star {
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239747FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.star.filled, .star.hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%239747FF' stroke='%239747FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
    transform: scale(1.1);
}

/* Bouton de soumission */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    margin: 2rem auto 0;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--orange), var(--purple));
    border: none;
    border-radius: 50px;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.submit-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(151, 71, 255, 0.3);
    background: linear-gradient(135deg, #ff8f6b, #a65bff);
}

/* Section des témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Carte de témoignage - AMÉLIORÉE */
.testimonial-card {
    background-color: rgba(13, 13, 53, 0.5);
    border: 1px solid rgba(151, 71, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Amélioration de l'effet hover sur les cartes */
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(151, 71, 255, 0.3);
    border-color: rgba(151, 71, 255, 0.4);
}

/* Ajouter un effet de lueur au survol */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(151, 71, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
}

.testimonial-rating .star {
    width: 18px;
    height: 18px;
}

.testimonial-card blockquote {
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--purple);
    font-weight: 600;
}

/* Animations */
[data-animation="fade-in"],
[data-animation="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="fade-in"].animate,
[data-animation="fade-up"].animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animation spéciale pour les étoiles dans les témoignages */
@keyframes twinkle {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Animation améliorée pour les étoiles au survol */
.testimonial-card:hover .testimonial-rating .star.filled {
    animation: twinkle 1.5s infinite;
}

.testimonial-card:hover .testimonial-rating .star.filled:nth-child(1) {
    animation-delay: 0s;
}

.testimonial-card:hover .testimonial-rating .star.filled:nth-child(2) {
    animation-delay: 0.3s;
}

.testimonial-card:hover .testimonial-rating .star.filled:nth-child(3) {
    animation-delay: 0.6s;
}

.testimonial-card:hover .testimonial-rating .star.filled:nth-child(4) {
    animation-delay: 0.9s;
}

.testimonial-card:hover .testimonial-rating .star.filled:nth-child(5) {
    animation-delay: 1.2s;
}




/* Responsive */
@media (max-width: 1024px) {
    .main-card, .testimonials-card {
        padding: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .intro-section {
        height: 400px;
    }
    
    .intro-content h1 {
        font-size: 2.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .main-section {
        margin-top: -50px;
    }
}

@media (max-width: 480px) {
    .intro-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .main-card, .testimonials-card {
        padding: 1.5rem;
    }
    
    .submit-button {
        width: 100%;
        padding: 14px 20px;
    }
}
/
* Styles pour les messages de validation et erreurs */
.form-message {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    animation: slideInDown 0.3s ease;
}

.form-message.success {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: 1px solid #4CAF50;
}

.form-message.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: 1px solid #f44336;
}

/* Styles pour les erreurs de champs */
.form-group input.error,
.form-group textarea.error {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2) !important;
}

.field-error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: "⚠";
    font-size: 1rem;
}

/* Animation pour les messages */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour la date des témoignages */
.testimonial-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
}

/* Amélioration du bouton de soumission */
.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive pour les messages */
@media (max-width: 768px) {
    .form-message {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .field-error {
        font-size: 0.8rem;
    }
}

/* Animation pour les nouvelles cartes de témoignages */
.testimonial-card[data-animation="fade-in"] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.testimonial-card[data-animation="fade-in"].animate {
    opacity: 1;
    transform: translateY(0);
}