/* 
 * Fichier : inscription-page.css
 * Styles spécifiques pour la page d'inscription Pro Artisan
 * Version : 2.0 - Corrigé et optimisé
 */

/* ===== VARIABLES CSS ===== */
:root {
    --primary-gradient: linear-gradient(135deg, var(--pa-accent) 0%, var(--pa-accent-strong) 100%);
    --secondary-gradient: linear-gradient(135deg, #1a1f3c 0%, #2d3250 100%);
    --success-gradient: linear-gradient(135deg, var(--pa-success), #2f9a46);
    --warning-gradient: linear-gradient(135deg, var(--pa-accent), var(--pa-accent-strong));
    --light-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(24, 119, 242, 0.15);
}

/* ===== SECTION PRINCIPALE ===== */
.inscription-page-section {
    padding: 0px 0;
    background: var(--light-gradient);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Effets de fond décoratifs */
.inscription-page-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(24, 119, 242, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Conteneur principal */
.inscription-page-section .container {
    position: relative;
    z-index: 1;
}

/* ===== EN-TÊTE ===== */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.header-content {
    position: relative;
    z-index: 2;
}

.icon-wrapper {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.header-icon {
    font-size: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

.page-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.page-subtitle {
    color: var(--pa-accent);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.badge-container .badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    border: none;
}

/* ===== SECTION AVANTAGES ===== */
.benefits-section {
    margin-bottom: 80px;
}

.section-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.title-decoration {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.title-decoration::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Grille des avantages */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.benefit-card-primary .benefit-icon-wrapper { 
    background: var(--primary-gradient); 
}

.benefit-card-secondary .benefit-icon-wrapper { 
    background: linear-gradient(135deg, #6a11cb, #2575fc); 
}

.benefit-card-success .benefit-icon-wrapper { 
    background: var(--success-gradient); 
}

.benefit-card-warning .benefit-icon-wrapper { 
    background: var(--warning-gradient); 
}

.benefit-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: 100%;
}

.benefit-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.benefit-stats {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pa-accent);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #eaeaea;
    width: 100%;
}

/* ===== PROCESSUS ===== */
.process-section {
    margin-bottom: 80px;
}

.process-header {
    text-align: center;
    margin-bottom: 40px;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 60px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    z-index: 1;
}

.process-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    align-items: flex-start;
    min-height: 120px;
}

.step-indicator {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-left: -60px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #eaeaea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--pa-accent);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-content {
    flex: 1;
    padding-left: 2rem;
    padding-top: 0.5rem;
}

.process-step.current .step-number {
    border-color: var(--pa-accent);
    background: var(--pa-accent);
    color: white;
    box-shadow: 0 0 0 8px rgba(24, 119, 242, 0.2);
}

.step-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: none;
}

.step-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-features {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.step-features li {
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.step-features li i {
    margin-right: 0.5rem;
    color: #28a745;
    font-size: 0.9rem;
}

/* ===== SECTION CTA ===== */
.cta-section {
    margin-bottom: 80px;
}

.cta-card {
    background: var(--secondary-gradient);
    border-radius: 30px;
    padding: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-icon-wrapper {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    display: inline-block;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
    border: none;
    color: #1a1f3c;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 201, 255, 0.3);
}

.btn-subtext {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: normal;
}

.cta-assurance {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.cta-assurance p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.cta-assurance p:last-child {
    margin-bottom: 0;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00c9ff, #92fe9d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== TÉMOIGNAGES ===== */
.testimonials-section {
    margin-bottom: 80px;
}

.testimonials-slider {
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(24, 119, 242, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    quotes: "«" "»" "‹" "›";
}

.testimonial-text::before {
    content: open-quote;
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: rgba(24, 119, 242, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(24, 119, 242, 0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.author-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.author-rating {
    color: var(--pa-accent);
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

/* ===== FAQ ===== */
.faq-section {
    margin-bottom: 60px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-category {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(24, 119, 242, 0.05);
    transition: all 0.3s ease;
}

.faq-category:hover {
    box-shadow: var(--hover-shadow);
    border-color: rgba(24, 119, 242, 0.1);
}

.faq-category-title {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f3ff;
    font-size: 1.3rem;
    font-weight: 600;
}

.accordion {
    --bs-accordion-border-color: rgba(24, 119, 242, 0.1);
    --bs-accordion-btn-focus-border-color: var(--pa-accent);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(24, 119, 242, 0.25);
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid rgba(24, 119, 242, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    color: #2c3e50;
    border-radius: 12px;
    background: rgba(24, 119, 242, 0.02);
    border: none;
}

.accordion-button:not(.collapsed) {
    background: rgba(24, 119, 242, 0.05);
    color: var(--pa-accent);
    border-bottom: none;
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231877f2'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231877f2'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
    box-shadow: var(--bs-accordion-btn-focus-box-shadow);
    border-color: var(--bs-accordion-btn-focus-border-color);
    outline: none;
}

.accordion-body {
    padding: 1.5rem;
    background: rgba(24, 119, 242, 0.02);
    line-height: 1.6;
}

.alert {
    border-radius: 12px;
    border: 1px solid rgba(24, 119, 242, 0.1);
    padding: 1.5rem;
    background: rgba(25, 135, 84, 0.05);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.4; 
    }
    100% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Classes pour l'animation au scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== UTILITAIRES ===== */
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mb-6 { margin-bottom: 4rem !important; }
.mb-7 { margin-bottom: 5rem !important; }

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité */
.btn:focus-visible,
.accordion-button:focus-visible,
.form-control:focus-visible {
    outline: 3px solid rgba(24, 119, 242, 0.5);
    outline-offset: 2px;
}

/* ===== MODE SOMBRE ===== */
@media (prefers-color-scheme: dark) {
    .benefit-card,
    .faq-category,
    .testimonial-card {
        background: #1e1e2e;
        border-color: #2d3748;
    }
    
    .benefit-title,
    .faq-category-title,
    .accordion-button,
    .step-content h3,
    .author-name {
        color: #e2e8f0;
    }
    
    .benefit-description,
    .step-description,
    .step-features li,
    .author-title {
        color: #a0aec0;
    }
    
    .cta-card {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .inscription-page-section {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .process-timeline::before {
        left: 30px;
    }
    
    .process-timeline {
        padding-left: 30px;
    }
    
    .step-indicator {
        margin-left: -30px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .cta-card {
        padding: 3rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .inscription-page-section {
        padding: 0px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-timeline {
        padding-left: 0;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .step-indicator {
        margin-left: 0;
        margin-bottom: 1rem;
    }
    
    .step-content {
        padding-left: 0;
        padding-top: 0;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-primary {
        width: 100%;
        max-width: 300px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .author-info {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .badge-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .badge-container .badge {
        width: fit-content;
    }
    
    .faq-category {
        padding: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .cta-card {
        padding: 1.5rem;
    }
    
    .process-step {
        min-height: auto;
    }
}

/* ===== IMPRESSION ===== */
@media print {
    .inscription-page-section {
        background: white !important;
        padding: 20px 0 !important;
    }
    
    .cta-card,
    .btn-cta-primary,
    .testimonial-card,
    .benefit-card,
    .faq-category {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .benefits-grid,
    .faq-grid {
        display: block;
    }
    
    .benefit-card,
    .faq-category {
        margin-bottom: 20px;
    }
    
    /* Cacher les éléments non essentiels */
    .btn-cta-primary,
    .accordion-button::after,
    .cta-card::before,
    .inscription-page-section::before {
        display: none !important;
    }
}

/* ===== OPTIMISATIONS ===== */
.benefit-icon-wrapper,
.step-number,
.icon-wrapper {
    will-change: transform;
    backface-visibility: hidden;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}