/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section avec thème solaire */
.hero {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 25%, #FF8C00 50%, #FFD700 75%, #FFFF00 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.sun-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, #FFFF00 30deg, transparent 60deg, #FFD700 90deg, transparent 120deg, #FFA500 150deg, transparent 180deg, #FFFF00 210deg, transparent 240deg, #FFD700 270deg, transparent 300deg, #FFA500 330deg, transparent 360deg);
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotate 20s linear infinite;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFFF00;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 20px #FFD700;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.floating-particles::after {
    top: 60%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 1; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
}

/* Navigation */
.navbar {
    position: relative;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px #FFD700);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #FF8C00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.btn-login {
    background: linear-gradient(45deg, #FF8C00, #FFD700);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
    color: white !important;
}

/* Contenu Hero */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 100px);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.highlight {
    background: linear-gradient(45deg, #FF8C00, #FFD700, #FFFF00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.2) saturate(1.3); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #FF8C00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Boutons CTA */
.cta-button {
    background: linear-gradient(45deg, #FF8C00, #FFD700, #FFFF00, #FFD700, #FF8C00);
    background-size: 300% 300%;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: gradientMove 3s ease infinite;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 140, 0, 0.5);
    animation-duration: 1s;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover .button-shine {
    left: 100%;
}

/* Visual Hero */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.3);
    position: relative;
    animation: floatCard 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
    z-index: -1;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.card-content h3 {
    font-size: 1.5rem;
    color: #FF8C00;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-content p {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, #FFFACD 0%, #FFF8DC 50%, #FFFACD 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, #FFD700, transparent);
    opacity: 0.1;
}

.services h2 {
    text-align: center;
    font-size: 3rem;
    color: #333;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px #FFD700);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(45deg, #FF8C00, #FFD700);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.1) 0%, transparent 50%);
    animation: rotate 15s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #FF8C00;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary:hover {
    background: white;
    color: #FF8C00;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header .logo {
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
    color: #FFD700;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 2rem;
    color: white;
}

.form-step.active {
    display: block;
    animation: slideInStep 0.3s ease;
}

@keyframes slideInStep {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.step-header p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.progress-step.completed {
    background: #00ff88;
    color: #333;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-line.completed {
    background: #00ff88;
}

/* Form Content */
.form-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Styles spécifiques pour les options du select */
.form-group select option {
    background: #333;
    color: white;
    padding: 0.5rem;
}

.form-group select option:hover,
.form-group select option:focus {
    background: #555;
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Radio et Checkbox Groups */
.radio-group,
.checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border: 2px solid #FFD700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    background: rgba(255, 215, 0, 0.13);
    box-shadow: 0 2px 12px 0 rgba(255,215,0,0.08);
}

.radio-option:hover,
.checkbox-option:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: #FFD700;
}

.radio-option input,
.checkbox-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    left: -9999px;
    top: -9999px;
    margin: 0;
    pointer-events: none;
    z-index: -1;
    outline: none !important;
    box-shadow: none !important;
    scroll-behavior: auto !important;
}

.radio-option input:focus,
.checkbox-option input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.radio-custom,
.checkbox-custom {
    width: 32px;
    height: 32px;
    border: 2.5px solid #FFD700;
    border-radius: 8px;
    background: #fff;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(255,215,0,0.13);
    margin-right: 10px;
    margin-left: 0.5rem;
}

.radio-option input:checked + .radio-custom,
.checkbox-option input:checked + .checkbox-custom {
    border-color: #00FF88;
    background: #00FF88;
    box-shadow: 0 0 0 3px #00FF8833;
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    position: relative;
}

.checkbox-option input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    left: 0;
    width: 5px;
    height: 70%;
    /*background: #00FF88;*/
    border-radius: 3px;
    transform: translateY(-50%);
}

.checkbox-option.terms {
    border: none;
    background: none;
    padding: 0;
}

.checkbox-option.terms a {
    color: #FFD700;
    text-decoration: underline;
}

/* Form Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.form-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.form-btn.primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.form-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.form-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-btn.submit {
    width: 100%;
    background: linear-gradient(45deg, #FF6B6B, #FFD700);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6); }
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    opacity: 0.8;
}

.login-link a {
    color: #FFD700;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .form-step {
        padding: 1rem;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .close-btn {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    /* Login modal responsive */
    .login-modal {
        width: 95%;
        margin: 1rem;
        padding: 1rem;
    }
    
    .cta-content h2,
    .services h2 {
        font-size: 2rem;
    }
}
