body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--gradient-hero);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 180px;
    height: 180px;
    top: 70%;
    right: 10%;
    animation-delay: 4s;
}

.floating-shape:nth-child(3) {
    width: 90px;
    height: 90px;
    bottom: 15%;
    left: 15%;
    animation-delay: 8s;
}

.floating-shape:nth-child(4) {
    width: 140px;
    height: 140px;
    top: 35%;
    right: 25%;
    animation-delay: 2s;
}

.floating-shape:nth-child(5) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 40%;
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }

    33% {
        transform: translateY(-25px) rotate(120deg);
        opacity: 0.8;
    }

    66% {
        transform: translateY(-15px) rotate(240deg);
        opacity: 1;
    }
}

/* Header */
.header {
    padding: 2rem 0 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: slideInDown 1s ease-out;
}

.logo {
    background: var(--accent-red);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo i {
    color: white;
    font-size: 1.5rem;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out 0.2s both;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Success Message */
.success-message {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.4s both;
}

.celebration-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.cohort-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    animation: slideInUp 1s ease-out 0.6s both;
}

.cohort-date {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.cohort-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.motivation-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: #fbbf24;
    font-weight: 500;
    position: relative;
    padding: 1rem 0;
}

/* .motivation-quote::before,
.motivation-quote::after {
    content: '🚀';
    font-size: 1.2rem;
} */

/* Form Container */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
    animation: slideInUp 1s ease-out 0.8s both;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), var(--accent-red), var(--success-green), var(--warning-yellow));
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-input:valid {
    border-color: var(--success-green);
}

.form-input::placeholder {
    color: var(--text-light);
    font-style: italic;
}

/* Select Styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Input Icons */
.input-icon {
    position: absolute;
    right: 2rem;
    top: 66%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus+.input-icon {
    color: var(--secondary-blue);
    transform: translateY(-50%) scale(1.1);
}

/* Form Validation */
.form-input.invalid {
    border-color: var(--accent-red);
    animation: shake 0.5s ease-in-out;
}

.form-input.valid {
    border-color: var(--success-green);
}

.error-message {
    color: var(--accent-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Submit Button */
.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dc2626 0%, var(--accent-red) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.submit-button:hover::before {
    left: 0;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.submit-button:active {
    transform: translateY(-1px);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-button.loading {
    pointer-events: none;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.security-badge i {
    color: var(--success-green);
}

.security-text {
    color: var(--success-green);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer Info */
.footer-info {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-info a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 500;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.success-modal.show .success-modal-content {
    transform: scale(1);
}

.success-modal-icon {
    font-size: 4rem;
    color: var(--success-green);
    margin-bottom: 1rem;
}

.success-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.success-modal-text {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-modal-button {
    background: var(--success-green);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .form-container {
        padding: 0 1rem;
    }

    .form-card {
        padding: 2rem;
        border-radius: 20px;
    }

    .cohort-info {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .form-input {
        padding: 1rem 1.25rem;
    }

    .submit-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .progress-indicator {
        gap: 0.5rem;
    }

    .progress-step {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .cohort-info {
        padding: 1rem;
    }

    .success-modal-content {
        padding: 2rem;
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Animation */
.form-group {
    animation: slideInUp 0.6s ease-out both;
}

.form-group:nth-child(1) {
    animation-delay: 1s;
}

.form-group:nth-child(2) {
    animation-delay: 1.1s;
}

.form-group:nth-child(3) {
    animation-delay: 1.2s;
}

.form-group:nth-child(4) {
    animation-delay: 1.3s;
}

.form-group:nth-child(5) {
    animation-delay: 1.4s;
}

.form-group:nth-child(6) {
    animation-delay: 1.5s;
}

.form-group:nth-child(7) {
    animation-delay: 1.6s;
}

.form-group:nth-child(8) {
    animation-delay: 1.7s;
}

/* Real-time validation indicators */
.validation-icon {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.validation-icon.valid {
    color: var(--success-green);
    opacity: 1;
}

.validation-icon.invalid {
    color: var(--accent-red);
    opacity: 1;
}


.error-message {
    color: #e11d48; /* rouge Tailwind */
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.selected-formule {
    color: #fff; /* texte blanc */

}

.selected-formule h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #fff;
}

.selected-formule p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.selected-formule .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700; /* or doré pour attirer l’œil */
}

.selected-formule .old-price {
    text-decoration: line-through;
    color: rgba(255,255,255,0.6);
    margin-right: 0.5rem;
}

.selected-formule .promo-price {
    font-size: 1.5rem;
    font-weight: bold;
}

.error-message {
    color: #ff4d4f;     
    font-size: 0.9rem;  
    margin-top: 4px;     
    font-style: italic; 
}

.form-input.is-invalid {
    border: 1px solid #ff4d4f;
    background-color: #fff5f5;
}
