/* Variables */
:root {
    --tech-blue: #2575fc;
    --power-red: #e63946;
    --titan-gold: #ffd700;
    --carbon: #1a1a2e;
    --ivory: #fffff5;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --success-green: #2ecc71;
    --warning-orange: #f39c12;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* Base Styles */
.inscription-page {
    font-family: 'Poppins', sans-serif;
    color: var(--carbon);
    line-height: 1.6;
    background-color: var(--ivory);
}

/* Hero Section */
.inscription-hero {
    display: flex;
    align-items: center;
    padding: 4rem 8%;
    background: linear-gradient(135deg, var(--carbon) 0%, var(--tech-blue) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 6%;}

.inscription-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/bg-circuit.png') center/cover no-repeat;
    opacity: 0.1;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid var(--titan-gold);
    color: var(--titan-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.hero-badge i {
    font-size: 1.2rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--titan-gold);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--titan-gold);
    opacity: 0.5;
    z-index: -1;
}

.hero-description {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 80%;
    margin-bottom: 3rem;
}

.hero-steps {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: var(--transition);
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border: 2px solid white;
}

.step.active .step-number {
    background-color: var(--titan-gold);
    color: var(--carbon);
    border-color: var(--titan-gold);
}

.step-label {
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.hero-visuel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visuel img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Form Container */
.form-container {
    padding: 3rem 8%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Form Steps */
.form-step {
    display: none;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.form-step.active {
    display: block;
}

.step-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--tech-blue) 0%, var(--power-red) 100%);
    color: white;
}

.step-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.step-header p {
    opacity: 0.9;
}

.form-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--carbon);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-gray);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--tech-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
    background-color: white;
}

.input-icon {
    position: absolute;
    left: 1rem;
    bottom: 0.8rem;
    color: var(--tech-blue);
}

.select-icon {
    position: absolute;
    right: 1rem;
    bottom: 0.8rem;
    color: #666;
    pointer-events: none;
}

/* Children Fields */
.children-fields {
    padding: 0 2rem;
}

.child-form {
    background-color: rgba(37, 117, 252, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--tech-blue);
}

.child-form h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--tech-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.child-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 2rem 2rem;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-prev {
    background-color: #f8f9fa;
    color: var(--carbon);
    border: 1px solid #ddd;
}

.btn-prev:hover {
    background-color: #e9ecef;
}

.btn-next,
.btn-submit {
    background-color: var(--tech-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
    background-color: #1a68ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 117, 252, 0.3);
}

.btn-submit {
    background-color: var(--success-green);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-submit:hover {
    background-color: #27ae60;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* Recap Section */
.recap-section {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.recap-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--carbon);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recap-content {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 1rem;
}

.recap-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.recap-item label {
    font-weight: 500;
    min-width: 150px;
    color: #666;
}

.recap-total {
    background-color: rgba(37, 117, 252, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.total-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.total-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--power-red);
    text-align: right;
}

.total-amount small {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.discount-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--carbon);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--titan-gold);
}

.discount-badge i {
    color: var(--titan-gold);
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 8%;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-header h2 span {
    color: var(--tech-blue);
    position: relative;
}

.section-header h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--tech-blue);
    opacity: 0.3;
    z-index: -1;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background-color: var(--ivory);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--tech-blue) 0%, var(--power-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--carbon);
}

.benefit-card p {
    color: #666;
    margin-bottom: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.modal-success {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(46, 204, 113, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--success-green);
    font-size: 2.5rem;
    animation: bounceIn 0.5s ease-out;
}

.modal-success h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--carbon);
}

.success-content p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.success-details {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: var(--tech-blue);
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.success-note {
    display: flex;
    gap: 0.8rem;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--titan-gold);
    margin-top: 1.5rem;
}

.success-note i {
    color: var(--titan-gold);
    font-size: 1.2rem;
}

.success-note p {
    margin: 0;
    font-size: 0.9rem;
    text-align: left;
}

.modal-close-btn {
    background-color: var(--tech-blue);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close-btn:hover {
    background-color: #1a68ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% { 
        opacity: 0;
        transform: scale(0.5);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
    100% { 
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .child-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .inscription-hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
    }
    
    .hero-description {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-steps {
        margin-top: 1.5rem;
    }
    
    .form-container {
        padding: 2rem 5%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .step-label {
        display: none;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .children-fields {
        padding: 0 1.5rem;
    }
    
    .step-actions {
        padding: 0 1.5rem 1.5rem;
    }
    
    .recap-section,
    .recap-total {
        padding: 0 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .benefits-section {
        padding: 3rem 5%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-success {
        padding: 2rem 1.5rem;
    }
}
/* Ajouts CSS pour améliorations */
.child-form {
    transition: all 0.3s ease-out;
    transform: translateY(10px);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.child-form:nth-child(1) { animation-delay: 0.1s; }
.child-form:nth-child(2) { animation-delay: 0.2s; }
.child-form:nth-child(3) { animation-delay: 0.3s; }
.child-form:nth-child(4) { animation-delay: 0.4s; }
.child-form:nth-child(5) { animation-delay: 0.5s; }

/* Animation pour les étapes complétées */
.step.completed .step-number {
    background-color: var(--success-green) !important;
    color: white !important;
    border-color: var(--success-green) !important;
}

/* Améliorations pour mobile */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .child-form-grid {
        grid-template-columns: 1fr;
    }
    
    .recap-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recap-item label {
        min-width: auto;
        margin-bottom: 0.2rem;
    }
}

/* Animation de chargement */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}





/* Media Query Principale pour Mobile */
@media (max-width: 767px) {
    /* Hero Section */
    .inscription-hero {
        padding: 2rem 5%;
        padding-top: 4rem;
        text-align: center;
        padding-top: 20%;
    }
    
    .hero-badge {
        margin: 0 auto 1.5rem;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .hero-steps {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .step-label {
        display: none;
    }
    
    /* Form Container */
    .form-container {
        padding: 1.5rem 5%;
    }
    
    /* Form Steps */
    .step-header {
        padding: 1.5rem;
    }
    
    .step-header h2 {
        font-size: 1.4rem;
    }
    
    .form-grid {
        padding: 1.5rem;
        grid-template-columns: 1fr;
    }
    
    /* Form Groups */
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.7rem 1rem 0.7rem 2.3rem;
    }
    
    /* Children Fields */
    .children-fields {
        padding: 0 1rem;
    }
    
    .child-form {
        padding: 1rem;
    }
    
    .child-form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Checkbox Group */
    .checkbox-group {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Step Actions */
    .step-actions {
        padding: 0 1rem 1.5rem;
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    /* Recap Section */
    .recap-section {
        padding: 0 1rem;
    }
    
    .recap-item {
        flex-direction: column;
    }
    
    .recap-item label {
        min-width: auto;
        margin-bottom: 0.2rem;
    }
    
    .recap-total {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .total-amount {
        font-size: 1.5rem;
    }
    
    /* Benefits Section */
    .benefits-section {
        padding: 2rem 5%;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    /* Modal */
    .modal-content {
        margin: 2rem auto;
        width: 90%;
    }
    
    .modal-success {
        padding: 1.5rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .modal-success h3 {
        font-size: 1.4rem;
    }
    
    .success-details {
        padding: 1rem;
    }
    
    /* Animations réduites pour mobile */
    .child-form {
        animation: none;
        transform: none;
        opacity: 1;
    }
}

/* Media Query pour très petits écrans */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .step-header h2 {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group select {
        font-size: 0.9rem;
    }
    
    .total-amount {
        font-size: 1.3rem;
    }
}

/* Optimisations spécifiques pour mobile */
@media (max-width: 767px) {
    /* Désactive certaines animations sur mobile pour les performances */
    .benefit-card:hover {
        transform: none;
    }
    
    /* Ajustements des ombres pour mobile */
    :root {
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        --shadow-hover: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Ajustement des espacements */
    .inscription-hero {
        padding-bottom: 2rem;
    }
    
    /* Optimisation du formulaire */
    .form-group label {
        font-size: 0.9rem;
    }
    
    /* Simplification des boutons */
    .btn-next:hover,
    .btn-submit:hover,
    .modal-close-btn:hover {
        transform: none;
    }
}