/* --- PAGE TUTO IA --- */

.mobile-break { display: none; }

.tuto-container, .generator-wrapper, .result-box {
    box-sizing: border-box !important;
    max-width: 100%;
}

.form-group input, .form-group select, .form-group textarea {
    box-sizing: border-box !important;
    width: 100%;
}
.tuto-container { 
    max-width: 900px; 
    margin: 40px auto; 
    background: #ffffff; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.tuto-header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.tuto-header h1 { 
    color: #1a2436; 
    font-size: 2.2rem; 
    margin-bottom: 10px; 
}

.tuto-header p { 
    color: #555; 
    font-size: 1.1rem; 
}

/* Le Bloc Générateur */
.generator-wrapper {
    background: #fff; 
    padding: 30px; 
    border: 1px solid #eee; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.generator-title {
    color: #ff7b00; 
    margin-top: 0; 
    font-size: 1.4rem;
}

.generator-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 20px; 
}

@media (max-width: 768px) { 
    .generator-grid { grid-template-columns: 1fr; } 
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 15px;
}

.form-group label { 
    font-weight: 600; 
    color: #333; 
    margin-bottom: 8px; 
    font-size: 0.95rem; 
}

.form-group input, .form-group select { 
    padding: 12px; 
    border: 1px solid #cbd0dd; 
    border-radius: 8px; 
    font-family: 'Poppins', sans-serif; 
    font-size: 1rem; 
}

.form-group input:focus, .form-group select:focus { 
    outline: none; 
    border-color: #007bff; 
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1); 
}

/* Boîte de résultat */
.result-box { 
    background: #f4f7f9; 
    border: 2px dashed #00c2ff; 
    border-radius: 12px; 
    padding: 25px; 
    margin-top: 30px; 
    text-align: center; 
}

.result-box h3 { 
    color: #007bff; 
    margin-top: 0; 
    margin-bottom: 5px; 
}

.result-subtitle {
    font-size: 0.9rem; 
    color: #666; 
    margin-top: 0; 
    margin-bottom: 15px;
}

.result-box textarea { 
    width: 100%; 
    height: 120px; 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid #ccc; 
    font-family: Arial, sans-serif; 
    font-size: 1rem; 
    line-height: 1.5; 
    resize: none; 
    background: #fff; 
    color: #333; 
    box-sizing: border-box; 
}

/* Boutons */
.btn-group { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    margin-top: 20px; 
    flex-wrap: wrap; 
}

.btn-ia { 
    padding: 12px 24px; 
    border: none; 
    border-radius: 50px; 
    font-weight: bold; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: 0.3s; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.btn-gemini { background: linear-gradient(90deg, #1A73E8, #8E24AA); }
.btn-chatgpt { background: #10A37F; }
.btn-ia:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }

#copy-success {
    color: #28a745; 
    font-weight: bold; 
    display: none; 
    margin-top: 15px;
}

/* Étapes du tutoriel */
.steps-container { margin-top: 50px; }
.steps-container h2 { text-align: center; color: #1a2436; margin-bottom: 30px; }

.step-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.step-number { 
    background: #ff7b00; 
    color: #fff; 
    font-size: 1.5rem; 
    font-weight: bold; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    flex-shrink: 0; 
}

.step-content h4 { 
    margin: 0 0 5px 0; 
    color: #1a2436; 
    font-size: 1.2rem; 
}

.step-content p { 
    margin: 0; 
    color: #555; 
    line-height: 1.6; 
}

/* Appel à l'action final */
.cta-studio { 
    display: block; 
    width: fit-content; 
    margin: 30px auto 40px !important; /* 30px en haut, auto sur les côtés, 40px en bas */
    padding: 15px 40px; 
    background: #ff7b00; 
    color: #fff; 
    text-decoration: none; 
    font-size: 1.2rem; 
    font-weight: bold; 
    border-radius: 50px; 
    text-transform: uppercase; 
    transition: 0.3s; 
    box-shadow: 0 4px 15px rgba(255,123,0,0.3); 
    text-align: center;
}

.cta-studio:hover { 
    background: #e66a00; 
    transform: scale(1.05); 
}

/* --- ADAPTATION POUR LES TÉLÉPHONES (MOBILE) --- */
@media (max-width: 768px) {
    .tuto-container { 
        padding: 20px 15px !important; /* Marges plus petites sur mobile */
        margin: 20px auto !important;
    }
    
    .generator-wrapper { 
        padding: 15px !important; 
    }
    
    .mobile-break { 
        display: block; /* On active le retour à la ligne sur mobile */
    }

    .tuto-header h1 { 
        font-size: 2 rem !important; /* Un peu plus grand, ça sera plus joli */
        line-height: 1.4 !important;
        padding: 0 10px !important;
        /* (Pensez bien à effacer la ligne text-wrap: balance; qui était ici) */
    }
    
    .result-box {
        padding: 15px !important;
    }
    
    .btn-ia {
        width: 100% !important; /* Les boutons prennent toute la largeur */
        justify-content: center !important;
    }
    .cta-studio { 
        font-size: 1rem !important; /* Texte légèrement plus petit */
        padding: 15px 20px !important; /* Marges intérieures réduites */
        width: 100% !important; /* Le bouton prend toute la largeur disponible */
        box-sizing: border-box !important;
        text-align: center !important; /* Le texte sera parfaitement centré même s'il passe sur 2 lignes */
    }
}