/* Studio Page Specific Styles */

/* Hero Section */
.studio-hero {
    background: linear-gradient(135deg,
        rgba(94, 23, 235, 0.05) 0%,
        rgba(0, 212, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: center;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(94, 23, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(94, 23, 235, 0.05) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.hero-feature i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* AI Generation Preview */
.studio-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.ai-generation-preview {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.generation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.generation-status {
    flex: 1;
}

.status-label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    animation: progressAnimation 3s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.generation-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0.3;
}

.generation-step.active {
    background: rgba(94, 23, 235, 0.05);
    opacity: 1;
}

.generation-step i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.generated-modules {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.generated-modules h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #666;
}

.module-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.875rem;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.module-item:nth-child(1) { animation-delay: 2s; }
.module-item:nth-child(2) { animation-delay: 2.2s; }
.module-item:nth-child(3) { animation-delay: 2.4s; }
.module-item:nth-child(4) { animation-delay: 2.6s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.module-item i {
    color: var(--primary-color);
}

/* Process Section */
.studio-process {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-timeline {
    position: relative;
    margin-top: 4rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 2;
}

.step-content {
    width: 45%;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.process-step:nth-child(even) .step-content {
    margin-left: auto;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(94, 23, 235, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.step-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-example {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.example-label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.step-details {
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.detail-item i {
    color: var(--secondary-color);
}

.generation-preview {
    margin-top: 1rem;
}

.preview-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.preview-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.step-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(94, 23, 235, 0.05);
    border-radius: 50px;
    font-size: 0.875rem;
}

.benefit i {
    color: var(--primary-color);
}

/* Sectors Section */
.studio-sectors {
    padding: 100px 0;
    background: white;
}

.sectors-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.sector-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.sector-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.sector-icon.consulting {
    background: linear-gradient(135deg, #667EEA, #764BA2);
}

.sector-icon.healthcare {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.sector-icon.construction {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.sector-icon.education {
    background: linear-gradient(135deg, #667EEA, #764BA2);
}

.sector-icon.automotive {
    background: linear-gradient(135deg, #FA709A, #FEE140);
}

.sector-icon.retail {
    background: linear-gradient(135deg, #30CFD0, #330867);
}

.sector-icon.hospitality {
    background: linear-gradient(135deg, #F093FB, #F5576C);
}

.sector-icon.tech {
    background: linear-gradient(135deg, #11998E, #38EF7D);
}

.sector-icon.legal {
    background: linear-gradient(135deg, #134E5E, #71B280);
}

.sector-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.sector-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.sector-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.5rem;
}

.sector-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.sector-features li:last-child {
    border-bottom: none;
}

/* Features Section */
.studio-features {
    padding: 100px 0;
    background: #f8f9fa;
}

.feature-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(94, 23, 235, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-box h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-details {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.875rem;
    color: #666;
}

.feature-details li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Demo Section */
.studio-demo {
    padding: 100px 0;
    background: linear-gradient(135deg, 
        rgba(94, 23, 235, 0.05) 0%, 
        rgba(0, 212, 255, 0.05) 100%);
}

.demo-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.demo-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.demo-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.demo-benefits .benefit i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.demo-form {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.demo-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.form-note i {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .studio-hero {
        padding: 50px 0 50px;
    }
    
    .process-step {
        flex-direction: column !important;
    }
    
    .step-content {
        width: calc(100% - 80px); /* Réduire la largeur pour laisser la place à la ligne */
        margin: 2rem 0 2rem 80px; /* Ajouter une marge gauche pour ne pas couvrir la ligne */
    }
    
    .process-step:nth-child(even) .step-content {
        margin-left: 80px; /* Maintenir la marge gauche même pour les éléments pairs */
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .step-number {
        left: 30px;
    }
    
    /* Ajouter de l'espacement entre la section processus et la section démo */
    .studio-demo {
        margin-top: 60px;
    }
    
    /* Ajouter plus d'espacement dans la section demo entre les éléments */
    .demo-benefits {
        margin-top: 2.5rem;
    }
    
    .demo-benefits .benefit {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .module-list {
        grid-template-columns: 1fr;
    }
    
    .sectors-showcase {
        grid-template-columns: 1fr;
    }
    
    .demo-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Pour les très petits écrans, ajuster encore plus la marge des blocs du processus */
    .step-content {
        width: calc(100% - 70px);
        margin: 1.5rem 0 1.5rem 70px;
    }
    
    .process-step:nth-child(even) .step-content {
        margin-left: 70px;
    }
    
    /* Augmenter l'espacement entre "accompagnement expert" et "démarrez votre personnalisation" */
    .demo-benefits .benefit:last-child {
        margin-bottom: 2.5rem;
    }
}

/* Corrections spécifiques pour les très petits écrans */
@media (max-width: 480px) {
    /* Réduire encore la largeur des blocs processus pour très petits écrans */
    .step-content {
        width: calc(100% - 60px);
        margin: 1rem 0 1rem 60px;
        padding: 1.5rem;
    }
    
    .process-step:nth-child(even) .step-content {
        margin-left: 60px;
    }
    
    /* Ajuster la position de la ligne et des numéros */
    .timeline-line {
        left: 25px;
    }
    
    .step-number {
        left: 25px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Plus d'espacement entre les sections sur mobile */
    .studio-demo {
        margin-top: 80px;
    }
    
    /* Espacement renforcé pour la section demo */
    .demo-benefits {
        margin-top: 3rem;
    }
    
    .demo-benefits .benefit {
        margin-bottom: 2rem;
    }
    
    .demo-form {
        margin-top: 3rem;
    }
}

/* Animations on scroll */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.6s ease;
}

[data-aos="fade-down"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}